Unhandled exception in "wincore.cpp" file

M

Mohammad Omer

Hi,

I am working on MFC base SDI application using vs2k5. When I close my
application, exception shows up in "wincore.cpp" line 449, statement

"lResult = CallWindowProc(oldWndProc, hWnd, nMsg, wParam, lParam);"

exception message is,
"Unhandled exception at 0x5a906a03 in test.exe: 0xC0000005: Access
violation reading location 0x5a906a03."

Please tell me, when and how this exception comes on above statement?

Regards,
-aims
 
B

Ben Voigt

Mohammad Omer said:
Hi,

I am working on MFC base SDI application using vs2k5. When I close my
application, exception shows up in "wincore.cpp" line 449, statement

"lResult = CallWindowProc(oldWndProc, hWnd, nMsg, wParam, lParam);"

exception message is,
"Unhandled exception at 0x5a906a03 in test.exe: 0xC0000005: Access
violation reading location 0x5a906a03."

Please tell me, when and how this exception comes on above statement?

You forgot to undo subclassing a window, or tried to remove the subclass at
the wrong time.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top