I'm coding an applicatation that uses SDL. sometimes, when I try to allocate a surface (by SDL_CreateRGBSurface) - and yes, it's a little big, the program crash reporting "Killed" message, and not just a NULL pointer to the supposed to be returned surface.
Any idea how can I prevent that crash? Or I have to restrict the surfaces to an arbitrary size? I read the SDL_surface.c* code and it already limitates the dimension in order to prevent overflow on variable size (int, long, etc).
Edit: *this file I got from 1.2.14 available at libSDL.org site.
Any idea how can I prevent that crash? Or I have to restrict the surfaces to an arbitrary size? I read the SDL_surface.c* code and it already limitates the dimension in order to prevent overflow on variable size (int, long, etc).
Edit: *this file I got from 1.2.14 available at libSDL.org site.