( ptr )); "> Torque Memory Manager asserting on memory free | Torque Game Engine | Forums | Community | TorquePowered.com

Game Development Community

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:

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..