Problem while displaying the BMP image

hi all

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

  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

Hi,

Are you doing any error checking? Have you looked at the SDL test
programs (e.g. http://hg.libsdl.org/SDL/file/7b7ad16f9704/test/testsprite.c).
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
like codepad.org?

– Brian