Click here to Skip to main content
15,886,788 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Debug assertion failed
program/c:/windows/system32/mfc140d.dll

What I have tried:

I tried to put the mfc140d.dll in the system32
Posted
Updated 30-Nov-22 1:55am
Comments
Rick York 29-Nov-22 23:30pm    
Usually a debug assertion failure will also tell you where the assertion occurred. Without that knowledge there is nothing anyone can do to help you.

MFC programs are usually not to be distributed in the debug version, but only as release versions. That's why you won't find a debug version of the MFC DLL on systems without a compiler. Copying the file into a system folder by hand is not a good idea. Either install the redistributable or copy the MFC DLL to the same folder as the application. For more information about redistributing MFC, see Redistributing Visual C++ Files.
https://learn.microsoft.com/de-de/cpp/windows/redistributing-the-mfc-library
 
Share this answer
 
You need to run your code under the debugger, and when the assertion fails, you then look at the information that is provided: the assertion message and the call stack. The latter tells you where the problem was detected, and the "chain" of functions that was called to get to that point. Somewhere in that chain will we your code - so start with there and look at what system functions / classes / delegates you are calling and what parameters you are passing. Something is wrong, and you will probably need to put a breakpoint on the call and run it again to start looking for what.

Sorry, but we can't help you - time to start learning a new skill: debugging.
 
Share this answer
 
The assertation is a failure of the program which is using that dll. So you need to debug your app and remove that bug.

Take a First look at the Visual Studio Debugger to better understand that tool and its features.
Find the place where the assert occurs and than figure out why it happens. Often it is an invalid handle in startup or exit code.
 
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