[SDL] Freeing SDL_Surfaces

Bill Kendrick nbs at sonic.net
Fri Nov 29 01:48:01 PST 2002


On Fri, Nov 29, 2002 at 10:41:45AM +0100, Matthijs Hollemans wrote:
> Yes, printf. Add a bunch of printf's here-and-there to pinpoint to
> place where your program is crashing.

printf's with fflush's :^)

  printf("I am here #1\n"); fflush(stdout);

  /* do something that may segfault */

  printf("I am here #2\n"); fflush(stdout);

  /* do something simple */

  printf("I am here #3\n"); fflush(stdout);


And then watch when it gets to "I am here #2" ;^)

(It's always the most benign-looking code that crashes)

-bill!




More information about the SDL mailing list