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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Invalid Address specified to RtlValidateHeap

Invalid Address specified to RtlValidateHeap

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomdebuggingquestion
2 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.
  • V Offline
    V Offline
    VitSoft
    wrote on last edited by
    #1

    Hi ALL !! please help me, when i create CScrollView without CDocument in my ActiveX control i had error and debug crash !!! :(( "Invalid Address specified to RtlValidateHeap" m_clsGridView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW, m_clsClientRect, this, AFX_IDW_PANE_FIRST + 1, NULL); What not so ?

    L 1 Reply Last reply
    0
    • V VitSoft

      Hi ALL !! please help me, when i create CScrollView without CDocument in my ActiveX control i had error and debug crash !!! :(( "Invalid Address specified to RtlValidateHeap" m_clsGridView.Create(NULL, NULL, AFX_WS_DEFAULT_VIEW, m_clsClientRect, this, AFX_IDW_PANE_FIRST + 1, NULL); What not so ?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Looks like you've got heap corruption - something has overwritten the start or end of an allocation block. A trivial example is:- char *ptr; ptr = (char *)malloc(strlen(origString)); if (ptr != NULL) strcpy(ptr, origString); // at this point you've overwritten the first byte // after the end of the allocated block at 'ptr' // this is because strcpy writes a zero byte at the // end of the string. Now this probably isn't the problem (the strcpy thing above) but can give you an idea of what is wrong. Alternatively a bad heap handle could have been passed to HeapValidate (which will call RtlValidateHeap). Stephen Kellett

      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