Game Development Community

Disabling memory manager

by Konstantin Zubarev · in Torque Game Builder · 02/14/2007 (11:02 pm) · 3 replies

I want to disable Torque memory manager and use STL in my project.
I have defined TORQUE_DISABLE_MEMORY_MANAGER in torqueConfig.h and build my project successfully.
But when I start debugging (not run), I got unwanted breakpoint at file t2dImageMapDatablock.cc, method
S32 t2dImageMapDatablock::cFramePartition::insertPartition(...);

Output window contains this information:
...
'Test1.exe': Loaded 'C:\WINXP\system32\nvopenal.dll', No symbols loaded.
HEAP[Test1.exe]: HEAP: Free Heap block d1d5ee8 modified at d1d60a8 after it was freed
Windows has triggered a breakpoint in Test1.exe.

This may be due to a corruption of the heap, and indicates a bug in Test1.exe or any of the DLLs it has loaded.
...

Please help with this problem.

OS: Windows XP SP2;
Tool: VisualStudio 2005;

#1
02/15/2007 (2:22 am)
There is no solution, I've try to solve this problem last summer. The GG guys just remove this macros from the source code in some places (i've posted a bug report long time ago), so it is still a bug.
#2
02/15/2007 (3:05 am)
Yeah, it's still a bug.
Only keepeng Torque memory manager on hides this message. Seems like problem remains)), but memory manager simply hides it.

PS. I've attached STL using stl_fix.h, as described:
http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=7480.
#3
02/15/2007 (3:43 am)
The official GG answer is that Torque wasn't designed to use with STL though.
I only suggest to use torque's vector class, stf_fix is outdated a bit.
As primary target of this engine is a scripters, not a coders, I think that problem has very low priority.