Click here to Skip to main content
15,887,343 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have migrated application from VS2010 to VS2017 professtional.

I am getting below exception in 2017 profssional at the time of exection.
I have selected Visual Studio 2017 (v141) toolset and 10.0.17763.0 Windows SDK.


Exception thrown at 0x7805A67A (mfc100d.dll) in SiMDICnvs.exe: 0xC0000005: Access violation reading location 0x00000000.

What I have tried:

I have downloaded mfc100d.dll file. but still getting same error.
Posted
Updated 17-Mar-20 4:48am

In addition to Steveb's comments, make sure you have the latest MFC library installed (not mfc100d.dll). Once you have the correct libraries installed, then rebuild your project.
 
Share this answer
 
If you rebuild in VS 2017 you won't need
mfc100d.dll
And 'd' suffix suggest it is a "debug" version of DLL that should never be shipped with executable. So your downloading it won't do a thing.
 
Share this answer
 
you need to throw out the old mfc100d.dll from project. Rebuilding should do the job.

Watchout for sub project or other own dlls in your projects. Best is to check all other modules for rebuild or newer versions.

It is the old and ugly dll hell.
 
Share this answer
 
As mentioned, you should NOT need mfc100d.dll at all. The fact that the program uses it means you do not have your project set up correctly or you have not fully rebuilt it.

The cause of your problem is a null pointer passed into a MFC function or method. Once you are linking with the correct version of MFC, you should be able to determine the location of the crash by using the debugger. Look at the call stack when the program crashes and you should be able to determine where in your code the problem is. You should be able to see what value is null and track it back to where it came from. This is one of the fundamental uses of the debugger and one you should become familiar with because this kind of problem arises often.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900