Why Debug Assertion Failed

Discussion in 'MFC' started by Hylius, Jun 23, 2010.

  1. Hylius

    Hylius New Member

    Joined:
    Jun 23, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I'm new to Visual C++ and MFC, so I apologize if this is something simple.

    I'm trying to use the Windows Packet Filtering API (Windows XP SP3) using Visual Studio 2010. When I try to run the .exe I immediately get the following error:
    Code:
    File: f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
    Line: 1511
    
    Expression: _CrtIsValidHeapPointer(pUserData)
    So when I hit retry and go to the debugger, I look at the call stack and the last reference in my .exe is:
    Code:
    retval = __dllonexit((_onexit_t)_encode_pointer(func), &onexitbegin, &onexitend);
    Afterwards it goes to the msvcr90d.dll and the last thing it tries to execute before the error is:
    Code:
    _ASSERTE(_CrtIsValidHeapPointer(pUserData));
    I've honestly no clue what to do. I spent the past 2 hours on google and these forums and nothing I saw helped. I could understand if it was due to a function I wrote, but the call stack does not indicate anything that I wrote. Am I missing some key option? Thanks for your time, and if there is anything I need to upload, please tell me. I apologize for anything missing or incorrect formatting.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice