Crash problem

BlitzMax Forums/BlitzMax Programming/Crash problem

Sometimes it crashes in Flip , sometimes in DrawTexture with unhandled memory exception. sometimes it comes out of the program with process ended.