Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Debug Assertion Failed

Debug Assertion Failed

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++debuggingperformancequestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Luke Murray
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • L Luke Murray

      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.

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      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

      L 1 Reply Last reply
      0
      • M Michael Dunn

        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

        L Offline
        L Offline
        Luke Murray
        wrote on last edited by
        #3

        Thanks Michael, that made some sense, and after some more looking into the code, i got it fixed. Thanks for the reply Luke.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups