[SDL] SDL Crashes on Exit

David Doria daviddoria at gmail.com
Wed Apr 1 13:02:35 PDT 2009


I have this in a separate thread:

    SDL_Event event;

    bool QuitSDL = false;

    while(SDL_WaitEvent(&event))
    {
        Display();
        QuitSDL = HandleEvents(event);

        if(QuitSDL)
        {
            break;
        }
    }

    SDL_Quit();

HandleEvents() returns true if the user pressed ESC or if they closed the
window.

When I do either of these events, the program segfaults. Anyone know why
this would be?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090401/cf69fc85/attachment-0007.htm>


More information about the SDL mailing list