none
exe has triggered a breakpoint in vc++ mfc

    Question

  • Hello All,
    I'm developing my MFC application(name abc) in  VC++ (visual studio 2008)
    When I click close button it gives
    "abc.exe has triggered a breakpoint". and it will point to this code of line #undef _CrtDbgBreak

    /* These methods don't need a separate
       wchar version. Hence they need to be compiled only once from
       the original file */

    _CRTIMP void _cdecl _CrtDbgBreak(
        void
        )
    {
        DebugBreak(); //cursor point to this line
    } in dbgrptt.c

    I am using some dll in my application through function pointer.

    Please suggest.


    • Edited by imrankhan12 Monday, October 15, 2012 7:12 AM
    Monday, October 15, 2012 7:01 AM

Answers

  • I'm developing my MFC application(name abc) in  VC++ (visual studio 2008)
    When I click close button it gives
    "abc.exe has triggered a breakpoint". and it will point to this code of line #undef _CrtDbgBreak

    When this occurs, use the call stack window to follow the calls back
    to the place in your code that triggers this.

    Warning - the break you're hitting may be a consequence of something
    wrong elsewhere in your application, so it may not be trivial to find.

    Dave

    Monday, October 15, 2012 7:42 AM