[SDL] Closing SDL window also closes MFC app

Sam Lantinga slouken at devolution.com
Tue Sep 10 11:27:00 PDT 2002

> Hi Sam,

> That's exactly what I'm doing. I call SDL_Init() with SDL_INIT_NOPARACHUTE. 
> I've reduced my application to a very simple one to avoid posible problems 
> with memory corruption. So, it only creates the dialog and the SDL window. 
> But it keeps on closing the whole program when I close first the SDL 
> window. What else can I try to close only the SDL window?

Like I said, it shouldn't be closing the entire application.  Can you step
into the SDL_Quit() call and see where the application shuts down?  You'll
probably need to build a debug version of the SDL DLL.

See ya,
	-Sam Lantinga, Software Engineer, Blizzard Entertainment

More information about the SDL mailing list