Ogre::MemoryManager assertion?

Problems building or running the engine, queries about how to use features etc.
Post Reply
User avatar
Kristian
Hobgoblin
Posts: 542
Joined: Sun Jan 12, 2003 7:35 pm
Location: Copenhagen, Denmark

Ogre::MemoryManager assertion?

Post by Kristian »

Hello People,
Im getting an assertion at OgreMemoryManager.cpp line 1116

at this line exately :
deallocationType == m_alloc_unknown

Can anyone tell me what it means and what i can do to prevent or correct it ?

( My app is deallocating a chunk og memory right before it asserts the memory is of the type void* and has the same address as allocated i think )
Kristian, crying out loud: "If it works. Don't fix it!" :p
HCA
HCA2
GuppyLife
User avatar
DWORD
OGRE Retired Moderator
OGRE Retired Moderator
Posts: 1365
Joined: Tue Sep 07, 2004 12:43 pm
Location: Aalborg, Denmark
Contact:

Post by DWORD »

Right before the assert in OgreMemoryManager.cpp line 1106:

Code: Select all

            // If you hit this assert, you were trying to deallocate RAM that was
            // not allocated in a way that is compatible with the deallocation
            // method requested. In other words, you have a allocation/deallocation
            // mismatch.
A possible cause could be you're trying to deallocate an array with 'delete' instead of 'delete[]' when it was allocated with 'new T[]'.
Post Reply