CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2002
    Posts
    28

    Whats the meaning of this

    When I compile my program in release mode I get the following error message when the program starts:

    Debug Assertion Failed!
    Program.....
    File: dbgheap.c
    Line 1044

    Expression _CrtIsValidHeapPointer(pUserData)

    Whats the meaning of this error and what is my fault in the program so that the program will run?


  2. #2
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    732

    Re: Whats the meaning of this

    Probably an uninitialized pointer (pUserData?).


  3. #3
    Join Date
    Jan 2002
    Posts
    28

    Re: Whats the meaning of this

    How can I find the pointer where is not initalized?


  4. #4
    Join Date
    Dec 2000
    Location
    Canada
    Posts
    732

    Re: Whats the meaning of this

    The line where you assert is a good place to start.


  5. #5
    Join Date
    Dec 2001
    Location
    Bremen, Germany
    Posts
    314

    Re: Whats the meaning of this

    Hit ALT+7 when the debug assertion poped up and take a look at the call stack. There you'll find the calling function (+line) easily.

    Oliver.



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