[SDL] SDL crash on exit
tsm at accesscomm.ca
Wed Nov 27 05:17:01 PST 2002
It's hard to say without seeing your sourcecode, but offhand I'd expect
there's some memory corruption somewhere - freeing surfaces twice,
freeing surfaces that were never allocated, writing to memory you never
allocated, etc.. these problems are annoying, because Windows can
sometimes let you get away with this long enough that where it crashes is
NOT what caused it to crash. For example, in one program I wrote, I was
accidentally freeing the VIDEO SURFACE - EVERY FRAME - and didn't even
notice for days. Could you post the smallest program you have that can
reproduce this problem?
> A 0xC000022 exception is thrown when my app quits.
> The crash appears in the cleanup_output(void) function of SDL_main.c
> the line
> produce a crash in fclose function of FCLOSE.C VC98 file.
> Now I'm sure that there's no more anything wrong with the setup of my
> project (no ignored lib, clean win32 app, every linked lib recompiled
> multithreaded dll)
> What could it be ?
> Thank you
> Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
> Yahoo! Mail : http://fr.mail.yahoo.com
> SDL mailing list
> SDL at libsdl.org
More information about the SDL