Ask the Expert

Error when running VC++ app in debug mode

When I run my VC++ application in debug mode. I get the following error: "Unhandled exception in some xxx.exe (MFC42.dll): 0xC0000005: Access violation." Can you please help me?
This is because you are accessing invalid memory. Run the program under the debugger, and the debugger will stop where the crash occurs, so you can determine how to proceed with fixing the bug.

This was first published in May 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.