[SOLVED] Trick to catching errror that causes crash?
Posted: Wed Sep 03, 2025 3:16 am
My main project will occasionally crash for no apparent reason, even when running in the debugger. All the debugger tells me is the program terminated unexpectedly. Maybe OnError could catch it, but don't understand how to use that. The OnError.pb sample code is very informative but I need to know what line is causing the crash.
I found the trick. Have to go into Compiler Options and put a check on "Enable OnError line support".
Now all I have to do is wait for the unexpected error and hope it gets caught instead of just crash.
I found the trick. Have to go into Compiler Options and put a check on "Enable OnError line support".
Now all I have to do is wait for the unexpected error and hope it gets caught instead of just crash.