I found I had problems with blitz3d if i had a lot of code before setting the graphics window. Try moving your code to create the window and set the app title in blitzmax to the very start, and make sure your using windowed mode.
See if that works?
See if that works?