Posts: 3,446
Threads: 376
Joined: Apr 2022
Reputation:
345
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.
Posts: 799
Threads: 140
Joined: Apr 2022
Reputation:
33
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.)

Please visit my Website at:
http://oldendayskids.blogspot.com/