PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Exception error on exit

Hi,

I'm a noob :oops: C++ / GapiDraw programmer, and I'm having a problem with my game briefly displaying an exception error on exit.

The code that is causing it is a bmp loaded into a surface, the bmp is 240*90 pixels and blits ok in the game, but the error on exit doesn't occur if I..
1) remove the bmp,
2) make it smaller, say 120*30.

I have other images working fine, but none as big as this one so I am assuming it has something to do with the size?

Here is the code...

Code:
CGapiSurface BackSprite;

BackSprite.CreateSurface(NULL, TEXT("\\projects\\game\\back.bmp"));


Hope someone can give me some guidance. :)

Tone.

PS GapiDraw ROX :P