|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
SDL not responding to eventsI'm trying to setup a basic SDL program but it won't respond to quit, keyboard events or anything. I have to open the task manager to close it. I'm not sure what's wrong.
Here's the code:
And the window class:
_______________________________________________ SDL mailing list SDL@... http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||
|
|
Re: SDL not responding to eventsHi. Where is "active" defined? Might it start out as false? Try using the SDL_GetError() function to retrieve a human readable string of what the error was. You can print this to a log file or display it in a message box. Then you would need to call exit(1) if the error is non-recoverable, or throw an exception / give "initialise" a return value so you can propagate the error back to main().
Finally, you might consider placing a debug breakpoint inside the loops (or print statements) that can verify if they are running. -- Brian
On Sat, Oct 31, 2009 at 7:11 AM, Sigvatr <me@...> wrote:
_______________________________________________ SDL mailing list SDL@... http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
| Free embeddable forum powered by Nabble | Forum Help |