I have been porting my TorqueLab project to T3D 3.7 and since that, the game crash everytime I quit after a mission has been loaded. Yesterday, I spent countless hours trying to fix it with no luck... The crash don't happen when using the stock T3D Full template, it only happen when my TorqueLab editor is installed. I tried the same version on my previous code (pre 3.7) and it run fine. The crash occur right after the quit(); call and I couldn't figure what is causing it. I'm familliar with C++ and basic debugging but this time is something I have never experienced which seem to be called Heap Corruption.
I tried to find information about what is causing the crash and the only reference I found is gLightingProgress. I'm not sure how to proceed to debug such crash so if anyone can point me to the good direction it would be really appreciated... What I could do to examine the crash deeper, I tried with the dumpUnflaggedAllocs thing and I got nothing (but I really don't know what I was doing...). Is there a way to get more data from the crash, I'm using VisualStudio 2013. (Tried with 2010 since some research made me think that it could be related to VS 2013).
I have attached 2 screenshots from VS 2010 debugging showing the callstack and some watchs (In the #2 you can see the gLightingProgress references). With the exception of that quit crash, everyting run fine and never crash.
Let me know if there's more usefull information I could share.
EDIT: Forgot to mention that this is with Stock T3D 3.7 code with no changes at all.
http://mud-h.com/miscweb/t3dforum/Crash ... rash_1.jpg
http://mud-h.com/miscweb/t3dforum/Crash ... rash_2.jpg