Win2K problem

Hi there,

I got a small problem with SDL & Win2K: whenever I go to the task manager
while running an home made SDL app, the app seems to freeze. I just can’t
focus on it anymore (I have to kill it). I’ve got no problem to multi-task
with other apps though. And this is not a configuration problem since other
apps don’t have this problem. The problem is not present on Win98.

I’d like to know what I’ve done wrong…

Here is a minimal example code:

#include “SDL.h”
#include <stdlib.h>
int main(int argc, char *argv[])
SDL_Event Event;
SDL_Surface *Screen;
bool Quit;

    if (SDL_Init(SDL_INIT_VIDEO) < 0)

    Screen = SDL_SetVideoMode(320, 200, 0, SDL_SWSURFACE);
    if (Screen == NULL)

    Quit = false;
    while (!Quit) {
            while (SDL_PollEvent(&Event)) {
                    if (Event.type==SDL_QUIT)
                            Quit = true;
            SDL_UpdateRect(Screen, 0, 0, 0, 0);
    return 0;