Hi all,
I've been trying to corner this bug I'm having for two weeks straight now, and I just can't find it.
My game runs fine. However, whenever I use the
_CRTDBG_CHECK_ALWAYS_DF heap check flag, I get this error:
HEAP[7errors.exe]: Number of free blocks in arena (43) does not match number in the free lists (44)
The numbers usually vary, sometimes <50, sometimes >6000.
The problem is that VisualStudio .NET breaks into the heap check function, not my code and I get no other information aside from what is mentioned above. No file or line number, nothing. Just the heap error in the output tab.
To make matter worse the bug doesn't occur after a specific action but at random, suggesting some kind of memory corruption.
If I don't use crtdbg at all I get no error report from VisualStudio or eVC, and the game doesn't crash, but I just fear the bug is there and will abide by Newton's law and popup at an innapropriate time.
If there are any debugging gurus out there, I'd appreciate a few hints as to what I could do to catch this sucker.
As a sidenote, BoundChecker doesn't report anything out of the ordinary, even with FinalCheck enabled.
Thanks. I have to finish this by sunday, and I tried all the tricks I could think of.
--Eric