-
Debug Assertion Failure
Hi everybody
Seems like I made quite a mess here.
Has anyone ever seen the following message, and can lead me to the possible cause???
"Debug Assertion Failed.
File:dbgheap.c
line 1017
EXPRESSION- BLOCK_TYPE_IS_VALID(phead->nblockuse)"
This error occurs while running my project, and I have no clue as to the reason for it
Please help
cheers
little Gozlan
-
Could you post the code that's causing the problem? Usually when I get this problem it's because I didn't allocate enough memory for something and free panics. Like allocating space for a string but forgetting the +1 for the null character.
Bebop
-
Show us the code. But I'm pretty sure that it has something to do with the free function. Some time ago I had the same problem. I didn't allocate enough memory.