Torque Memory Manager asserting on memory free
by Terence Tan · in Torque Game Engine · 08/03/2006 (6:08 pm) · 0 replies
I get the following assert:
in platformMemory.cc
When I this:
it happens when i free it:
ptr is int * ptr;
it works if I just do a delete ptr...but that memory is lost..?
Using Visual Studio 2003..
AssertFatal(((bool)((hdr->flags & Array)==Array))==array, avar("Array alloc mismatch. "));in platformMemory.cc
When I this:
ptr = new int[ intsNeeded ]; rep_ = (reinterpret_cast<Rep*>( ptr ));
it happens when i free it:
delete [] ptr;
ptr is int * ptr;
it works if I just do a delete ptr...but that memory is lost..?
Using Visual Studio 2003..
About the author