Game Development Community

AssertFatal in platformMemory.cpp on startup

by JohnT · in Torque Game Engine Advanced · 05/28/2005 (11:53 am) · 6 replies

Just downloaded the Head version of TSE and am getting an AssertFatal for the FreeHeader at line 934 when I debug the example project.

I downloaded the previous version of TSE and everything appears to be working correctly so I don't believe that this is a DirectX or Video card problem.

Thanks,
John

#1
05/28/2005 (12:14 pm)
It is an assumption in the memory manager which I recently added a check for. Intriguingly, for some people it blows up, and others it doesn't. There is a fix in CVS... But before you do that, can you check in the debugger and tell me what values it gives for sizeof(Memory::Header), sizeof(Memory::AllocatedHeader) and sizeof(Memory::FreeHeader)? This will help track down what might be a potential bug in the memory manager.

Thank you very much!
#2
05/28/2005 (12:29 pm)
Ben, thanks for the help!

Looks like Header = 16 and FreeHeader = 32.
#3
05/28/2005 (12:59 pm)
Almost forgot!
AllocatedHeader = 16 and does not assert.
#4
05/28/2005 (1:11 pm)
Having same problem here, and also getting 16, 16, and 32 like John.
#5
05/28/2005 (2:22 pm)
Thanks for the info, guys! I very much appreciate the quick responses! :)

It turns out that FreeHeader is 16 bytes longer by design, and that I was just not reading the code closely enough. Embarassing... The asserts have been turned off for the moment; in the future I'll do a little bit of error checking around them.

Thanks again!
#6
05/28/2005 (2:37 pm)
No problem, Works Great Now!!!