Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UnHandled Errors
#1
Sort of related to Unseen's last post, but not quite, so I'll post it separately:

Is there a reason that Unhandled Error (e.g. Subscript out of range) invites you to continue? 
It won't let you continue anyway with this error. but maybe some errors can continue?  Huh
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply
#2
Aye.  Sometimes you can move on from unhandled errors and keep going with a program.  Generally speaking, if it's something like a subscript out of range, that array is going to be used multiple times, and all you're going to do is click "Continue" "Yes"  "Please give me the same error on the next line too!" until you go insane over it.

Other times, it's a simple one-off-and-done issue that may not terminate the whole program.

Imagine playing a game that wants to load an image of a treasure chest when you defeat the boss.  Your little kid/cat/pet gremlin edited the file that was "treasure.bmp" and made it "truserfs.bmd".  The program can't load that image, and it certainly can't reference it and _PUTIMAGE it, so it's going to toss an error on it when it tries.

But, at the same time, it only tries to load that image once every time you find a treasure chest.  It'll go to reference the image that doesn't exist, toss an error, you can click continue, and then everything else will work except that image won't display on the screen.  You collect your loot, move off that screen, and continue playing the game, instead of just having to stop and shut down anywhere a chest appears in the game.

Many times those errors are endless cycles of doom.   Sometimes they're not.  As the guy who normally writes all the crap (or at least compiles all the crap) that I run in QB64, I tend to note whatever reference it gives me and then exit immediately to go see if I can hunt down the problem.  Without the source though, all you can really do is either quit and continue, and being able to continue -- if possible -- is usually a better option than just always reporting the glitch and then terminating the program completely.
Reply
#3
Thanks Steve; I suspected there were some cases where it could continue, but haven't found any yet.
Most of my errors are Subscript out of range
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Out of range errors! Unseen Machine 4 545 08-17-2025, 04:11 AM
Last Post: Unseen Machine
  Some errors building IDE in feren OS, but it built. Ok to use? Dav 2 655 08-17-2024, 06:53 PM
Last Post: Dav

Forum Jump:


Users browsing this thread: 1 Guest(s)