Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello people, I need help, please, I just did and application MFC SDI in visual studio 2010 C++ ultimate, in windows 7, the program is for win32 x 86 targets, and I did the install file msi as an install project.

When I install it in Windows 7 computers everything is fine, the problem is when I install it in windows XP or Vista. at the beginning everything seem work all right, I can install it, and I can open it, but at the moment of showing the window it crashes and says "Unhandled exception MFC100UD.DLL access violation". I have been trying to find the bug and find out that it happens in the function CWinApp::ProcessShellCommand is called in the CWinApp::InitInstance(), is there any solution for this issue.?

Many thanks.


Mauricio Ruiz
Posted
Updated 3-Apr-12 23:53pm
v2
Comments
Mohibur Rashid 4-Apr-12 5:41am    
Very little information. but i would suggest you to debug it on xp mode
Jochen Arndt 4-Apr-12 6:23am    
As already noted, you should try to debug to give more information. ProcessShellCommand() opens the document file passed on the command line or creates a new empty document. So the violation may occur anywhere in the document, child frame or view initialization.

1 solution

Do you distribute the VC++ library DLLs (MFC, CRT) in your app folder or do you rely on the redistributable packages? (Microsoft Visual C++ 2010 Redistributable Package (x86)[^] or Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)[^] if you have the SP1 installed. Notice there are other packages for x64 and IA64)

Use depends.exe (www.dependencywalker.com) to make sure all the dependencies of your app are available on the target WinXP machine.

Also, make a habit of distributing Release builds and not Debug builds. I can see you are distributed a Debug because it depends on MFC100UD.dll. A release build would depend on MFC100U.dll.
 
Share this answer
 
Comments
mauruizl 12-Apr-12 10:10am    
Many thanks...

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