Original Post
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.