Game Development Community

Debug not working

by Robert Stewart · in Torque Game Engine Advanced · 11/15/2005 (5:56 pm) · 2 replies

I can compile TSE fine, and it runs perfectly on release. However it wont run on debug mode, it says Array Alloc Mismatch and right before that stops at this line
S32 retVal = run(argv.size(), (const char **) argv.address());
I'm using Visual C++ 2003. Suggestions?

#1
11/15/2005 (8:49 pm)
Typically means you're freeing memory you allocated as an array like it wasn't, or vice versa. ie,

U8* a = new U8;
delete[] a;

or

U8** a = new U8[];
delete a;
#2
11/16/2005 (7:45 am)
Thanks.
So what would be the best way to find out where I'm doing that? All I can tell from my debugger is that its stopping in S32 PASCAL WinMain. I'm using a fresh SDK and just updated it from cvs.