[SDL] SDL_Quit() called inside a DLL using MINGW gives page fault on W98?
rylan at intekom.co.za
Mon Apr 26 11:37:05 PDT 2004
I recently developed a small program in Rh9 usind SDL 1.2.6 that worked
correctly. Compiled in W98 using MINGW as an .EXE it also runs correctly.
However, compiling the program as a DLL and then calling the DLL works, but on
executing an exit(); inside the DLL code it always aborts with a page fault.
I traced the problem to the atexit(sdl_quit) line. I removed this and the
program now runs without a page fault.
My question: Is it a known occurrence that doing sdl_quit() inside a DLL under
Windows causes a page fault? Or do I have a memory leak somewhere that does
not emerge in Linux but only on Windows? If I have a memory leak or
something, why does the code, ran inside an EXE, NOT cause a page fault?
Or is this a "feature" of a DLL, i. e. at_exit() code is not allowed inside
Software Support Technician
Polar Design Solutions
More information about the SDL