[SDL] Closing SDL window also closes MFC app
slouken at devolution.com
Tue Sep 10 09:59:01 PDT 2002
> I'm writing an MFC application which creates a SDL window from a dialog.
> But when the SDL window is closed it also closes the dialog and the
> application. How can I close only the SDL window?
That sounds like the application is crashing in SDL_Quit(), which usually
means there's memory corruption in your application. Given that it's an
MFC application, all bets are off. Try adding the SDL_INIT_NOPARACHUTE
flag to your SDL_Init() call, and see what happens in the debugger.
-Sam Lantinga, Software Engineer, Blizzard Entertainment
More information about the SDL