-
September 22nd, 2015, 06:05 AM
#1
Problem with MFC Application
I have an MFC Dialog based application developed in Visual Studio 2008. Everything is perfectly fine. Except, when I run that application in a fresh PC, where, there is no Visual Studio or any other thing, it crashes with this error message.
Problem signature:
Problem Event Name: APPCRASH
Application Name: CodeGen3.0.exe
Application Version: 1.0.0.1
Application Timestamp: 56012e6d
Fault Module Name: CodeGen3.0.exe
Fault Module Version: 1.0.0.1
Fault Module Timestamp: 56012e6d
Exception Code: c0000005
Exception Offset: 00001af5
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 16393
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Read our privacy statement online:
http://go.microsoft.com/fwlink/?link...8&clcid=0x0409
If the online privacy statement is not available, please read our privacy statement offline:
C:\Windows\system32\en-US\erofflps.txt
Can someone help me in resolving this issue?
-
September 22nd, 2015, 07:01 AM
#2
Re: Problem with MFC Application
You are probably missing the MFC redistribution dlls for the version of VS that you created the program with. See http://www.microsoft.com/en-us/downl....aspx?id=26368
To find out if missing dlls are the problem, run the depends tool on the target machine - http://dependencywalker.com/
-
September 22nd, 2015, 08:05 AM
#3
Re: Problem with MFC Application
Originally Posted by Arjay
Even after using this Microsoft Visual C++ 2008 Service Pack 1 Redistributable Package MFC Security Update the result is still the same
-
September 22nd, 2015, 08:14 AM
#4
Re: Problem with MFC Application
In fact before using the service pack, I created a setup and deployment package (.MSI) so that it will automatically get the dependency and integrate it within the MSI File, but it didn't work
-
September 22nd, 2015, 03:12 PM
#5
Re: Problem with MFC Application
I don't think it's a missing library; the Exception Code is Access Violation...
Could you try to install the Dependency Walker on that system, load your application there and do Profile -> Start Profiling?
Does it give you a hint on what function is failing?
A "fresh" PC can differ from you dev system in many ways. For example, there a data file may be missing, and you do not check a return value when opening that file.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio:
FeinWindows - replacement windows manager for Visual Studio, and more...
-
September 23rd, 2015, 12:57 AM
#6
Re: Problem with MFC Application
Originally Posted by VladimirF
I don't think it's a missing library; the Exception Code is Access Violation...
Could you try to install the Dependency Walker on that system, load your application there and do Profile -> Start Profiling?
Does it give you a hint on what function is failing?
A "fresh" PC can differ from you dev system in many ways. For example, there a data file may be missing, and you do not check a return value when opening that file.
These are the DLLs that dependency walker found missing.
API-MS-WIN-APPMODEL-RUNTIME-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-ROBUFFER-L1-1-0.DLL
API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL
API-MS-WIN-SHCORE-SCALING-L1-1-1.DLL
DCOMP.DLL
GPSVC.DLL
IESHIMS.DLL
Does this mean that these DLLs should be there with the EXE file in the fresh PC?
Last edited by maverick786us; September 23rd, 2015 at 01:04 AM.
-
September 24th, 2015, 06:45 AM
#7
Re: Problem with MFC Application
Originally Posted by maverick786us
These are the DLLs that dependency walker found missing.
Does this mean that these DLLs should be there with the EXE file in the fresh PC?
Yes, because your application was supposed to use some functions/data from these DLLs
Victor Nijegorodov
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|