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. _CrtIsValidHeapPointer

_CrtIsValidHeapPointer

Scheduled Pinned Locked Moved C / C++ / MFC
htmlcomdebuggingtoolshelp
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.
  • B Offline
    B Offline
    Bob Stanneveld
    wrote on last edited by
    #1

    Hello, Hello, MSDN says this[^] about _CrtIsValidHeapPointer I use that function to verify that an address is not valid after a function call. The only problem is that this function jumps into the debugger when it finds out that the address is not valid. So this function returns TRUE or it jumps into the debugger and never returns FALSE, which is exactly what I need.. Is there some alternative of this function that does return FALSE instead jumping into the debuffer? Blog[^]

    J 1 Reply Last reply
    0
    • B Bob Stanneveld

      Hello, Hello, MSDN says this[^] about _CrtIsValidHeapPointer I use that function to verify that an address is not valid after a function call. The only problem is that this function jumps into the debugger when it finds out that the address is not valid. So this function returns TRUE or it jumps into the debugger and never returns FALSE, which is exactly what I need.. Is there some alternative of this function that does return FALSE instead jumping into the debuffer? Blog[^]

      J Offline
      J Offline
      jmkhael
      wrote on last edited by
      #2

      You can find the code in dbgheap.c under \crt\src see what can be done It mainly uses IsBadReadPtr, IsBadWritePtr and HeapValidate or __sbh_verify_block depending on the OS and if the CRT is statically or dynamically linked Papa while (TRUE) Papa.WillLove ( Bebe ) ;

      B 1 Reply Last reply
      0
      • J jmkhael

        You can find the code in dbgheap.c under \crt\src see what can be done It mainly uses IsBadReadPtr, IsBadWritePtr and HeapValidate or __sbh_verify_block depending on the OS and if the CRT is statically or dynamically linked Papa while (TRUE) Papa.WillLove ( Bebe ) ;

        B Offline
        B Offline
        Bob Stanneveld
        wrote on last edited by
        #3

        Thanks, That worked! :-D Blog[^]

        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