Click here to Skip to main content
Rate this: bad
good
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
v2
Comments
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
good
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 (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.
  Permalink  
Comments
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 595
1 OriginalGriff 295
2 CPallini 210
3 PIEBALDconsult 150
4 Fredrik Bornander 140
0 OriginalGriff 5,835
1 Sergey Alexandrovich Kryukov 5,263
2 CPallini 4,750
3 George Jonsson 3,227
4 Gihan Liyanage 2,487


Advertise | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 6 Apr 2012
Copyright © CodeProject, 1999-2014
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