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?