[SDL] LoadBMP faling
Miguel M.
radioact1ve at yahoo.com
Mon Jul 3 21:29:15 PDT 2006
Hello everyone!
I have been messing around and reading up on SDL. To get to the point, simple SDL program that puts the SDL logo on the screen. Everything compiles and links fine. The thing is that when I execute the program from within VC++ I keep getting:
Unhandled exception at 0x1002b1cf in SDL Test.exe: 0xC0000005: Access violation reading location 0x00000000.
at: SDL_Surface* temp = SDL_LoadBMP("sdl.bmp");
I'm guessing LoadBMP is failing. That's part of the problem.
When I go to my actual .exe and run it manually (no VC++), it works fine! I looked all over the place for this and I couldn't find anything on it.
Sum up: With VC++ the app doesn't work. When I run it on it's own, it works fine.
Any suggestions?
------------
- Miguel
radioact1ve at yahoo.com
http://radioact1ve.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060703/cfa580c0/attachment.html
More information about the SDL
mailing list