Skip to main content
GameDev.net gamedev.net
🔒 Locked

SDL_Delay() freezes program

Started by Patrick_ Aug 22, 2008 at 2:16 PM 1 replies 2.1k views
Original Post
Patrick_
Patrick_
If I have an SDL_Delay() call in my main loop, and if there's a window event under Windows (such as a movement of the window), my program will freeze and I'm forced to terminate it. I can remove the SDL_Delay() and the problem goes away. If I replace the call with sleep(), and the same problem occurs. The value passed to the sleep functions is valid, usually a being short number of milliseconds. Any reason why this might be? It's getting pretty annoying.
Patrick_
Patrick_
Fixed... bad values were being passed to SDL_Delay() but weren't showing up in printf(). :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.