A newb question...why's the destructor called right afterinitialization

Austin W. Dunham V wrote:

SDL_FreeSurface(screen);

Whatever else is wrong with your code, you should never free the surface
returned by SDL_SetVideoMode.–
Rainer Deyke - rainerd at eldwood.com - http://eldwood.com