[SDL] Quiting SDL window without quiting application?
jason at hoffoss.com
Thu Mar 28 15:16:00 PST 2002
What I'm thinking this might be is some kind of strange MFC window
destructor behavior. With no window, maybe it assumes the program can't do
anything useful and so it terminates. When it comes to MFC, it's a whole
new philosophy after all. Is the OpenGL window acting as the frame window?
If so, it should probably be a view window instead. If you don't really
need MFC, I'd recommend just making a Win32 application instead. That's
more what SDL is designed for.
----- Original Message -----
From: "Orhun Birsoy" <obirsoy at marketweb.net.tr>
To: <sdl at libsdl.org>
Sent: Thursday, March 28, 2002 5:04 PM
Subject: Re: [SDL] Quiting SDL window without quiting application?
> I found a nasty solution.
> SDL_Thread * SDLThread = SDL_CreateThread(DispPolyGL_ThreadFunc, NULL);
> SDL_WaitThread(SDLThread, NULL);
> DispPolyGL_ThreadFunc contains all the necessary init, draw and quit
> functions for SDL.
> Now my application does not quit. Just the thread I created. Is this a
> possible solution?
> ----- Original Message -----
> From: "Ryan C. Gordon" <icculus at clutteredmind.org>
> To: <sdl at libsdl.org>
> Sent: Thursday, March 28, 2002 14:49
> Subject: Re: [SDL] Quiting SDL window without quiting application?
> > > Sorry for my ignorance but , I have several dialogs (in fact SDL
> > > created from one of the dialogs). When I call SDL_Quit(). After the
> > > that called SDL_Quit() returns, application also quits. This Windows
> > > by the way. I am also quite new to SDL.
> > What happens when you do SDL_QuitSubSystem(SDL_INIT_VIDEO)?
> > --ryan.
> > _______________________________________________
> > SDL mailing list
> > SDL at libsdl.org
> > http://www.libsdl.org/mailman/listinfo/sdl
> SDL mailing list
> SDL at libsdl.org
More information about the SDL