SDL 1.0.8 bmp viewer for windows

Okay so I have a BMP viewer using SDL 1.0.8 that works
fine under linux, but dies under windows. Fullscreen,
windowed, Swsurface, hwsurface, 8 bpp - 32 bpp. It all
dies! It will show the first bitmap…but when you try
and view the next one it shows it for a second and
then exits. If anyone can help me out I can send my
source code out to you. Well thanks for reading my
whining.__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

Okay so I have a BMP viewer using SDL 1.0.8 that works
fine under linux, but dies under windows. Fullscreen,
windowed, Swsurface, hwsurface, 8 bpp - 32 bpp. It all
dies! It will show the first bitmap…but when you try
and view the next one it shows it for a second and
then exits. If anyone can help me out I can send my
source code out to you. Well thanks for reading my
whining.
Are you deleting the surfaces you don’t need?

SDL_FreeSurface.

Linux is a little nicer about this stuff than Windows I find…

You are probably segfaulting Windows.

Make sure the memory allocations are correct and that the pointers
actually point to something. Dereferencing a NULL pointer will kill you
every time…

DaveOn Mon, 17 Apr 2000, Jared wrote:


Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

Hey thanks it was a problem with not freeing a
surface, works fine now. Thanks man.>Are you deleting the surfaces you don’t need?

SDL_FreeSurface.
Linux is a little nicer about this stuff than Windows
I find…
You are probably segfaulting Windows.
Make sure the memory allocations are correct and that
the pointers actually point to something.
Dereferencing a NULL pointer will kill
you every time…
Dave


Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com