Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Mon 21/02/2011 20:59:28

Title: Odd API Error
Post by: Calin Leafshade on Mon 21/02/2011 20:59:28
---------------------------
Microsoft Visual C++ Debug Library
---------------------------
Debug Assertion Failed!

Program: D:\AGS\test\Compiled\test.exe
File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgdel.cpp
Line: 52

Expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse)

For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.

(Press Retry to debug the application)
---------------------------
Abort   Retry   Ignore   
---------------------------

Since the message references a drive that I don't have I assume its a internal thing left in the code.

The crash dump says that a breakpoint has been hit.

Can you shed any light onto this CJ?
Title: Re: Odd API Error
Post by: Kweepa on Tue 22/02/2011 00:21:50
Looks like your debug heap is corrupt.
You have probably overwritten some memory, or deleted/freed something prematurely.
Either that, or FMOD did. What fun!
Title: Re: Odd API Error
Post by: Calin Leafshade on Tue 22/02/2011 07:14:23
Found it. I'm not used to all this allocating and release malarky.

It's just not cricket.
Title: Re: Odd API Error
Post by: monkey0506 on Tue 22/02/2011 15:38:03
The irony of you saying that it's not cricket is, I presume, that no one, and I mean absolutely nobody, understands the rules, point, or attraction to the "game" of cricket.

That's what Douglas Adams told me anyway. ;D