Crashes on Debug, not Release.
BlitzMax Forums/BlitzMax Programming/Crashes on Debug, not Release.
| ||
Hello. I have some source code that when built on Debug mode, results in an "Unhandled Exception: Attempt to index array element beyond array length" error. When I build this same source code on Release mode (that is, Debug turned off), it works as expected and does not produce the error. Unfortunately I can't share the source, but I would like to know if a behavior like this was already encountered by someone before. EDIT: It points the crash location as the "Try" keyword at the beginning of a Try...Catch block. |
| ||
Nevermind, I found the origin. It was an array field that I didn't initiate. A function call inside the Try...Catch block was using a nonexistent index of it, so that's why the IDE must've tagged the "Try" keyword. |