Click here to Skip to main content
13,289,626 members (64,870 online)
Rate this:
Please Sign up or sign in to vote.
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 4-Apr-12 0:32am
Updated 4-Apr-12 0:53am
johny10151981 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

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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 ( 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.
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171207.1 | Last Updated 6 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100