I'm experiencing a very odd crash and I've absolutely no idea how to fix it, maybe someone here can help me. First of all, here's my source and my homebrew directory:
-
Source code (107 KB)
-
Homebrew directory (4.57 MB)
Now the symptoms:
The problems occurs ONLY if I draw an image on the screen, and only when the ProcessSection() function (game.cpp) is about to return to main(). If I do not draw an image there will be no errors. Also, if you look at the destructor for the Image class (graphics.cpp) you will see that it frees the in and out buffers of the JPEG image; commenting the destructor out does not help, which means that the crash is not caused by deleting data currently in use.
Edited 1 time(s). Last edit at 02/03/2010 10:20AM by diego_pmc.