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...