Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
better error trapping?
#2
You can emulate the try/catch by setting up a block with an "on error goto". A try catch would be quite nice, though. Even if it means it will be _TRY _CATCH..... blegh.... Thank God for $NOPREFIX.

Something I just thought about, though, would be that you'd only be catching exceptions that QB64 runtime throws. It wouldn't be useful for someone like me, who uses external libraries and wouldn't have the ability to catch exceptions from the libraries in this way. I'd have to stick to if statements and GetLastError instead.
The noticing will continue
Reply


Messages In This Thread
better error trapping? - by madscijr - 01-06-2023, 06:57 PM
RE: better error trapping? - by SpriggsySpriggs - 01-06-2023, 08:07 PM
RE: better error trapping? - by madscijr - 01-06-2023, 09:29 PM
RE: better error trapping? - by SpriggsySpriggs - 01-06-2023, 09:42 PM
RE: better error trapping? - by madscijr - 01-07-2023, 03:34 AM
RE: better error trapping? - by mnrvovrfc - 01-06-2023, 11:22 PM
RE: better error trapping? - by mnrvovrfc - 01-07-2023, 03:38 AM
RE: better error trapping? - by madscijr - 01-08-2023, 03:59 AM
RE: better error trapping? - by aurel - 01-08-2023, 09:11 AM
RE: better error trapping? - by mnrvovrfc - 01-08-2023, 09:50 AM
RE: better error trapping? - by Fifi - 01-09-2023, 11:25 AM
RE: better error trapping? - by aurel - 01-08-2023, 04:09 PM
RE: better error trapping? - by bplus - 01-08-2023, 04:19 PM
RE: better error trapping? - by aurel - 01-08-2023, 05:18 PM
RE: better error trapping? - by bplus - 01-08-2023, 06:29 PM
RE: better error trapping? - by DSMan195276 - 01-08-2023, 06:33 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compile error when .bas name is same as a directory (linux) Dav 3 806 10-18-2024, 03:32 PM
Last Post: Kernelpanic
  Error Message bplus 3 904 08-20-2024, 09:03 PM
Last Post: Pete
  double error Jack 1 636 08-16-2024, 08:43 PM
Last Post: Pete
  erf() - The Gauss error function BSpinoza 6 1,247 11-14-2023, 09:01 PM
Last Post: Kernelpanic
  QB64 0.8.1 - File call error message. Kernelpanic 2 892 06-11-2022, 11:16 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: 1 Guest(s)