Crash on TGB exit due to Persistent Objects
by Ryan Fields · in Torque Game Builder · 11/22/2009 (7:49 am) · 2 replies
Just started working with TBG, version 1.7.4. I noticed that after setting a scene object's Persistent checkbox on, TGB will crash when I try to exit. I was able to find one reference to this in the forum at the following post:
http://www.garagegames.com/community/forums/viewthread/47243
The replies to the post indicate that this was fixed, but my mileage is telling me otherwise. It looks to me like the memory pointed to by mpProcessHead is being double-freed, but I don't know enough about the TGB source to track down where else that memory might be freed. Obviously, I can start eyeballing the code around all calls to t2dSceneGraph::getProcessHead, and that's my current plan of attack. I'm just hoping someone else can give me more info on this issue and save me some time.
I'll post back here if I find the cause.
http://www.garagegames.com/community/forums/viewthread/47243
The replies to the post indicate that this was fixed, but my mileage is telling me otherwise. It looks to me like the memory pointed to by mpProcessHead is being double-freed, but I don't know enough about the TGB source to track down where else that memory might be freed. Obviously, I can start eyeballing the code around all calls to t2dSceneGraph::getProcessHead, and that's my current plan of attack. I'm just hoping someone else can give me more info on this issue and save me some time.
I'll post back here if I find the cause.
About the author
Recent Threads
#2
01/29/2012 (4:10 am)
I'm fairly sure this issue hasn't been resolved. I just had a long de-bug session. At the end of it I found my crash was being caused by a Persistent Object. I'm currently using 1.7.6 and this was my first stop in finding more information on the issue itself.
Torque Owner Merfy