Mysterious crash - does it happen to you?

BlitzMax Forums/BlitzMax Programming/Mysterious crash - does it happen to you?

2336 is definitely not acceptable.
That means it is extended to 4096 which is only supported by the latest 2 generations of cards.
Beside that it is really unperformant and a massive waste of VRAM and RAM in this case as well as over 800x1700 pixels are just black and unused. (your "image" will end with 20 MB VRAM where a large part is wasted, because BM will extend the image to 1024x4096 to follow texture standards)
You better tile that as it is common in 2D (ir strip it into vertical slices that you handle similar to an image strip => animimage)