Game Development Community

Crash on shutdown

by TheBren · in Torque Game Engine · 04/28/2005 (10:17 am) · 0 replies

Hi,

I'm using OpenTNL with Ogre, an LGPL graphics engine (www.ogre3d.org).

Ogre has a memory manager which tracks allocs/deallocs through malloc/free and new/delete, to help identify memory leaks/overruns.

I have attempted to disable this memory manager for OpenTNL, which isn't working ATM, but that's a separate issue, and I'm wondering if it is in fact catching a legitimate problem with OpenTNL.

Basically, when my NetInterface subclass is deleted, the memory manager complains that memory has been modified beyond the allocation. The run-time result is a shutdown crash. Intermittently, I can get deallocation-related crashes, probably as NetObjects are deleted, but these are less common. The NetInterface crash happens 100% of the time.

I appreciate that OpenTNL may be doing some voodoo in there that the Ogre memory manager doesn't like, but I'm wondering if maybe this is actually a legitimate problem.

Any suggestions?

About the author