title: SDL: Window freezes
body: <p>I wanted to start working on SDL. I got a sample code to see if it worked fine. When compiling I get no errors, but when I run it the window shows up but the program freezes until the delay time is over.
  I'm new to this so I would really appreciate some help.</p>
  
  <pre><code>int main(int argc, char* argv[]) {
  
  SDL_Init(SDL_INIT_EVERYTHING);
  
  SDL_Window *window = 0;
  
  window = SDL_CreateWindow("Hello World!",
          SDL_WINDOWPOS_CENTERED,
          SDL_WINDOWPOS_CENTERED,
          640, 480,
          SDL_WINDOW_SHOWN);
  
  SDL_Delay(10000);
  
  SDL_DestroyWindow(window);
  SDL_Quit();
  
  return 0;
  </code></pre>
  
  <p>}</p>