Crashing in SDL.DLL on WinXP

I am getting a crash when I call SDL_DisplayFormatAlpha(surface)


SDL_Surface *surface = SDL_LoadBMP(“Test.bmp”);
if (surface == NULL) return (false);
m_surface = SDL_DisplayFormatAlpha(surface);

No matter what file or format I load, I get a crash in the SDL.DLL. I
have small stand alone app that does not crash, so it’s more complex
that a bad .dll or file.

Unfortunatly, there is no way to debug into the SDl.DLL…or is there?

Is there a debug version of this DLL for VC6? Is there a version of
the SDL source that will compile under VC6 so I can debug into it and
see why it is crashing?

Or, does anyone have any suggestions for why this would be crashing?

Tankko

Everytime I got a new version of SDL, I do re-compile it from sources
to fit my compilers and libs well.

I have got the similar problems, and, now, it works quite well from my
own build. That’s it. Further more, sometimes I compile the SDL, SDL_image
(include jpeglib/zlib/libpng), SDL_mixer into a single DLL, which cuts down
the number of DLLs and their size and avoid quite a lot of problems.

“Tankko Omaskio” …>I am getting a crash when I call SDL_DisplayFormatAlpha(surface)

SDL_Surface *surface = SDL_LoadBMP(“Test.bmp”);
if (surface == NULL) return (false);
m_surface = SDL_DisplayFormatAlpha(surface);

No matter what file or format I load, I get a crash in the SDL.DLL. I
have small stand alone app that does not crash, so it’s more complex
that a bad .dll or file.

Or, does anyone have any suggestions for why this would be crashing?

Is there a VC6 project out there for SDL? I didn’t see one and I’d
rather not reinvent the wheel.

TankkoOn Apr 8, 2005 6:58 PM, RocWood <rocwood at 21cn.com> wrote:

Everytime I got a new version of SDL, I do re-compile it from sources
to fit my compilers and libs well.

I have got the similar problems, and, now, it works quite well from my
own build. That’s it. Further more, sometimes I compile the SDL, SDL_image
(include jpeglib/zlib/libpng), SDL_mixer into a single DLL, which cuts down
the number of DLLs and their size and avoid quite a lot of problems.

“Tankko Omaskio” <@Tankko_Omaskio> …

I am getting a crash when I call SDL_DisplayFormatAlpha(surface)
SDL_Surface *surface = SDL_LoadBMP(“Test.bmp”);
if (surface == NULL) return (false);
m_surface = SDL_DisplayFormatAlpha(surface);

No matter what file or format I load, I get a crash in the SDL.DLL. I
have small stand alone app that does not crash, so it’s more complex
that a bad .dll or file.

Or, does anyone have any suggestions for why this would be crashing?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Sure, download the source package, and you will find a visualc.zip together
with the source code. In the zip, there are the dsws/dsps, other supports,
anything you need to build SDL in vc6.

“Tankko Omaskio” ???:7fec743f050408220166aa18db at mail.gmail.com…> Is there a VC6 project out there for SDL? I didn’t see one and I’d

rather not reinvent the wheel.

On Apr 8, 2005 6:58 PM, RocWood <rocwood at 21cn.com> wrote:

Everytime I got a new version of SDL, I do re-compile it from sources
to fit my compilers and libs well.