CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: HeapAlloc break

  1. #1
    Join Date
    May 2002
    Location
    Romania
    Posts
    929

    HeapAlloc break

    I have some undo/redo operations which are done on CTRL+Z/CTRL+Y. Sometimes, when trying to allocate some members dynamically, an assertion in HeapAlloc comes in the front when in Debug mode.

    I don't know how to handle this error, not a clue, not a starting point, nothing.

    So any ideea or advice will be apreciated!
    Thank you.
    Attached Images Attached Images  
    Move like a snake, think like a snake, be a snake !!!

  2. #2
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: HeapAlloc break

    The times I've experience assertions in HeapAlloc the reason has usually been a corrupt heap, which usually means that I've been writing at non-allocated memory locations.

    Some clues:
    * Uninitialized pointers
    * Invalid pointers
    * Bounds-checking when writing to arrays

    - petter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured