Menu

#1 Assertion failure on exit

open
nobody
None
5
2003-11-24
2003-11-24
Aykut Kilic
No

important note:
this doesn't happen if the map file isn't loaded.

blockallocator.h : line 151
-----------------------------------------------
/**
* Destruct all. Note that objects have to be freed
properly before
* the block allocator is called, otherwise the
destructors will not
* be called! In debug mode this destructor will also
check that all
* objects are freed correctly.
*/
~csBlockAllocator ()
{
#ifdef CS_DEBUG
CS_ASSERT (firstfreeblock == 0);
int i;
for (i = 0 ; i < blocks.Length () ; i++)
{
*** CS_ASSERT (blocks[i].firstfree == (csFreeList*)
blocks[i].memory);
CS_ASSERT (blocks[i].firstfree->next == 0);
CS_ASSERT (blocks[i].firstfree->numfree == size);
}
#endif
}

Discussion


Log in to post a comment.