renjith kumar wrote: > *** glibc detected *** ./sample: free(): invalid pointer: 0xbf8242b8 *** I get this same error when my program exits. I've been ignoring it because I thought maybe SDL_FreeSurface (or some other sdl free function) was getting called more than once for the same pointer. jim