I’m wondering if anyone has a clue of what is going on here. I am
using a sprite library called SpriteWorld X, which uses SDL. I have a
loop running through the main body of my program. Each iteration
through the loop is a “new game.” At the start of this loop, it
creates sprites which are loaded by the IMG_Load SDL_Image function.
At the end of the loop, the sprites are disposed of and their memory
freed. But when the loop executes for a second time, I get an access
fault when calling IMG_Load. The parameters haven’t changed from the
first loop so it should work. But it doesn’t.