[SDL] Problem when i load an XPM image

NeGflar negflar at katamail.com
Tue Jun 6 02:38:08 PDT 2006


Hello,
i have a problem when i try to load an XPM image with SDL_Image.
I have converted my bmp image in XPM with Image-Magick.

Here the c++ code

#include "myimage.xpm"

...
SDL_Surface *xpmImage = NULL;
xpmImage = IMG_ReadXPMFromArray(myimage)     //if i see the code of XPM generated, the name of array is myimage
....


I compile this with no error, but when i try to execute my apps, i have this error in debug:

"Unhandled exception a 0x00385285 in myApps.exe: Acces violation reading location 0x00000000"

What's the problem?
tank's
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20060606/bab220c2/attachment.htm 


More information about the SDL mailing list