Problem while displaying the BMP image

hi all

am using SDL for displaying an bmp image in it the steps am following is as

  1. initialization of SDL
  2. creating a surface
  3. loading an image

the program is running with out any errors but when am running an executable
am getting a small window and it is removing in fraction of seconds.

can any one please help me out on it

thanks and Regards

Pavan Kumar Kota


Are you doing any error checking? Have you looked at the SDL test
programs (e.g.
If you’re checking the SDL functions for error values, and looking at
the examples doesn’t help, can you post it on the list or on somewhere

– Brian