Why Debug Assertion Failed

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

  1. Hylius

    Hylius New Member

    Jun 23, 2010
    Likes Received:
    Trophy Points:
    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:
    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:
    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:
    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