Unhandled exception

Discussion in 'MFC' started by pord911, Feb 8, 2011.

  1. pord911

    pord911 New Member

    Feb 8, 2011
    Likes Received:
    Trophy Points:

    I'm working on an assignment in MFC. I added two edit boxes in my form,mixed something with the code involving with these edit boxes :) and removed it all later, including the edit boxes. And what happened, the compiler goes without errors, but when I debug it an "Unhandled exception at 0x00620c19 in voltmeter.exe: 0xC0000005: Access violation reading location 0xfefeff66" happens. I have gone through the code with the debuger and saw that the DoModal() function returnes -1, when it should return 1. And in the DoModal function in the line
    LPCDLGTEMPLATE lpDialogTemplate = m_lpDialogTemplate;
    the variable lpDialogTemplate doesnt change it's content, it always stays unfulfilled, and when it hits the line
    if (lpDialogTemplate == NULL)
    return -1;
    it returnes -1, I think this is the problem, or maybe I'm wrong :).

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