Click here to Skip to main content
11,718,016 members (80,563 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ XP/VISTA/SEVEN
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 3-Apr-12 23:32pm
Edited 3-Apr-12 23:53pm
johny10151981 at 4-Apr-12 5:41am
Very little information. but i would suggest you to debug it on xp mode
Jochen Arndt at 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 at 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
0 Sergey Alexandrovich Kryukov 874
1 OriginalGriff 215
2 F-ES Sitecore 210
3 Maciej Los 140
4 Jochen Arndt 120
0 Sergey Alexandrovich Kryukov 1,649
1 OriginalGriff 535
2 Maciej Los 529
3 Richard MacCutchan 440
4 CHill60 415

Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 6 Apr 2012
Copyright © CodeProject, 1999-2015
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