Debug Assertion Failed
-
Hello everyone. i'm i got a program that uses the drag and drop class from CP (i think Leon Finker's) and i'm not sure whats causing it, but when in debug mode i drag something from one listview to another, i get "Debug Assertion Failed" on line 1132 of dbgheap.c something about _CtrlsValidHeapPointer(pUserData) and "Damage: before Normal block (#-858993460) at 0x0012D1D8" I'm have no idea how this is happening, and why, i was hoping someone could help, me, even a good article on debuging would be nice. I'm using WTL as well. Even when i have the onDrop method do nothing i still run into this error, i can get to line 1186 in dbgheap.c then it wont do anything but break out of running. Its something to do with freeing debug memory from the heap. anybody know anything that could help me? thanks Luke.
-
Hello everyone. i'm i got a program that uses the drag and drop class from CP (i think Leon Finker's) and i'm not sure whats causing it, but when in debug mode i drag something from one listview to another, i get "Debug Assertion Failed" on line 1132 of dbgheap.c something about _CtrlsValidHeapPointer(pUserData) and "Damage: before Normal block (#-858993460) at 0x0012D1D8" I'm have no idea how this is happening, and why, i was hoping someone could help, me, even a good article on debuging would be nice. I'm using WTL as well. Even when i have the onDrop method do nothing i still run into this error, i can get to line 1186 in dbgheap.c then it wont do anything but break out of running. Its something to do with freeing debug memory from the heap. anybody know anything that could help me? thanks Luke.
Luke Murray wrote: Damage: before Normal block (#-858993460) at 0x0012D1D8 You (or some code you're using) allocated memory, then wrote outside of the block of memory. In this case, it underran the block and the CRT detected it. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER
-
Luke Murray wrote: Damage: before Normal block (#-858993460) at 0x0012D1D8 You (or some code you're using) allocated memory, then wrote outside of the block of memory. In this case, it underran the block and the CRT detected it. --Mike-- Ericahist | Homepage | RightClick-Encrypt | 1ClickPicGrabber Latest art~!@#2rDFA#@(#*%$Rfa39f3fqwf--= NO CARRIER
Thanks Michael, that made some sense, and after some more looking into the code, i got it fixed. Thanks for the reply Luke.