My program works for about 5 minutes, and then it dies with
Unhandled Error #258
Line: 7164 (in main module)
Invalid handle
Continue?
where line 7164 is:
I've looked through the code and it isn't doing a _FREEIMAGE or otherwise resetting the image handle (that I can see), so I am not sure what's causing this.
I'm attaching my program, in case anyone would like to take a look or try running it.
To reproduce the error, just choose option 3 or 4 (animation test) and wait. You can move around the screen with the arrow keys and if you get tired of waiting press ESC to exit.
Any help or advice much appreciated!
Screen shot:
[ You are not allowed to view this attachment ]
Error message after it runs for 5 minutes:
[ You are not allowed to view this attachment ]
The code and tile sheets it uses:
[ You are not allowed to view this attachment ]