title: SDL does not show its window if I use a logging library
body: <p>I'm trying to use log4cplus in conjunction with SDL to make a little graphic application.<br>
  I'm using minGW and Eclipse CDT on windows.</p>
  
  <p>My problem is that whenever I use the library, my SDL window is not shown.
  Instead I get this on the console <code>[New Thread 2624.0x1270]</code> and that is it. No error message, no compilation/linking problem, nothing (see edit for precisions).<br>
  If I don't use the library, a similar message appears on the console and then disappears, and my SDL window is shown properly.  </p>
  
  <p>Below is an example of this behavior. If I comment the two lines starting with "Logger ", then everything is fine. If I do not, SDL window is not shown.   </p>
  
  <p><strong>Edit:</strong> I've tried using just the logging library and commenting all the other code but this fails as well somehow. I cannot put a breakpoint on the logger code, eclipse tells me: <em>Breakpoint attribute problem: installation failed</em> and the code don't seem to be executed.</p>
  
  <p>*<em>Edit2:</em>*I was on the wrong track, see my post below. Problem kind of solved.</p>
  
  <p>Any Idea?</p>
  
  <pre><code>#include &lt;stdlib.h&gt;
  #include &lt;SDL/SDL.h&gt;
  #include &lt;SDL/SDL_endian.h&gt; /* Used for the endian-dependent 24 bpp mode */
  #include "Screen.h"
  
  #include &lt;log4cplus/logger.h&gt;
  #include &lt;iomanip&gt;
  
  using namespace log4cplus;
  
  int main(int argc, char **argv) {
  
           if ( SDL_Init(SDL_INIT_VIDEO) &lt; 0 ) {
              fprintf(stderr, "Impossible d'initialiser SDL: %s\n", SDL_GetError());
              exit(1);
          }
  
        SDL_Surface *screen;
  
           screen = SDL_SetVideoMode(640, 480, 32, SDL_SWSURFACE);
           if ( screen == NULL ) {
               fprintf(stderr, "Impossible de passer en 640x480 en 16 bpp: %s\n", SDL_GetError());
               exit(1);
           }
  
      Logger root = Logger::getRoot();
      Logger log_1 =  Logger::getInstance(LOG4CPLUS_TEXT("test.log_1"));
  
           while(true)
           {
               SDL_Event event;
               SDL_WaitEvent(&amp;event);
  
                          switch (event.type) {
                              case SDL_KEYDOWN:
                                  printf("La touche %s a été préssée!\n",
                                         SDL_GetKeyName(event.key.keysym.sym));
                                      //SDL_Quit();
                                  break;
                              case SDL_QUIT:
                                  exit(0);
                          }
  
                          Screen::DrawPixel(screen,20,20,200,10,10);
           }
  }
  </code></pre>