Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » program crashes on exit

This thread is locked; no one can reply to it. rss feed Print
program crashes on exit
shadyvillian
Member #12,426
December 2010

When I exit my program in the release build version only of it crashes. Heres what the debugger says:

#0 00000000 0x00447482 in ??() (??:??)
#1 00000000 0x004419e6 in ??() (??:??)
#2 00000000 0x004010db in ??() (??:??)
#3 00000000 0x00401158 in ??() (??:??)
#4 75513C45 KERNEL32!AcquireSRWLockExclusive() (C:\Windows\system32\kernel32.dll:??)
#5 776137F5 ntdll!RtlInsertElementGenericTableAvl() (C:\Windows\system32\ntdll.dll:??)
#6 776137C8 ntdll!RtlInsertElementGenericTableAvl() (C:\Windows\system32\ntdll.dll:??)
#7 00000000 0x00000000 in ??() (??:??)

Any Ideas?

Software Engineer by day, hacker by night.

Trent Gamblin
Member #261
April 2000
avatar

Compile with debug info enabled.

shadyvillian
Member #12,426
December 2010

Do you mean use the compiler flag -g?

Software Engineer by day, hacker by night.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

shadyvillian
Member #12,426
December 2010

Well I guess you could say that it doesn't crash in debug mode. Why would it crash in release doesn't in just optimize it or something?

EDIT: Well after some computer troubles followed by reformat and reinstall of windows the debug and release versions are crashing on exit. But now the debugger says its crashing on a al_destroy_font. I comment it out now a al_destroy_bitmap its crashing. Long story short I comment all of them out and it works fine. What causes it to crash from that?

Software Engineer by day, hacker by night.

Edgar Reynaldo
Major Reynaldo
May 2007
avatar

Go to: