Page 1 of 1

New twist on CTD

Posted: Thu Nov 20, 2008 11:31 pm
by db99
I'm mainly experiencing CTDs when I quit the program.

In addition to the usual "WWI has encountered a problem etc." error I got the following three dialogs in regards to un-handled c++ exceptions before the usual dialog:

1st dialog:

Program: Program\AgeOD\WorldWarOne\WW1.exe
File: dbgdel.cpp
Line: 52
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

2nd dialog:

Program: Program\AgeOD\WorldWarOne\WW1.exe
File: dbgheap.c
Line: 1279
Expression: _CrtIsValidHeapPointer(pUserData)

3rd dialog

Program: Program\AgeOD\WorldWarOne\WW1.exe
File: dbgheap.c
Line: 1285
Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

Sort of looks like MS library calls to me but it's been a few years since I've done any c++ programming. Thought I'd pass them along just in case they are useful ;)

I'm running the 1.04 version of the program on XP.

Posted: Thu Nov 20, 2008 11:36 pm
by calvinus
Useful anyway. It's a damned memory leak in AI structures when long plays are done (or if low RAM)... very though to fix. At least it's on game quit. In some other cases it happens when loading a new scenario inside the same game session.