Crash problem

BlitzMax Forums/BlitzMax Programming/Crash problem

It crashes both in Debug and Release Modes. Sometimes it comes out with a bad ref obj message. Not very clear what the problem could be.