App Launch Crash
-
-
Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?
Perhaps an exception code, minidump, memory snapshot, anything could help, attatch the visual studio debugger as a JIT debugger.
-
Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?
john5632 wrote:
it is not lanching and producing a exception
What is the exception ?
modified on Wednesday, January 19, 2011 10:43 PM
-
Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?
May be you will have to install the VC++ 2008 redistributable as well.
-
Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?
That's mean it doesn't work on another machine? If the answer is yes then you probably have to deploy VC runtime and/or MFC DLL (see, for instance, http://msdn.microsoft.com/en-us/library/8kche8ah(VS.90).aspx[^]). :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
May be you will have to install the VC++ 2008 redistributable as well.
Although some people define "crash" rather generally, if it was missing the runtimes it would generally show a message saying something like "the application failed to initialize. The application configuration is incorrect"
-
john5632 wrote:
it is not lanching and producing a exception
What is the exception ?
modified on Wednesday, January 19, 2011 10:43 PM
As soon as IO try to launch the application using installer I get the below exception: Problem Event Name: APPCRASH Application Name: Myapp.exe Application Version: 6.3.11.0 Application Timestamp: 4d343707 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7600.16385 Fault Module Timestamp: 4a5bdb3b Exception Code: c0000005 Exception Offset: 00038c39 OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 4c0d Additional Information 2: 4c0d4d78887f76d971d5d00f1f20a433 Additional Information 3: 4c0d Additional Information 4: 4c0d4d78887f76d971d5d00f1f20a433
-
As soon as IO try to launch the application using installer I get the below exception: Problem Event Name: APPCRASH Application Name: Myapp.exe Application Version: 6.3.11.0 Application Timestamp: 4d343707 Fault Module Name: ntdll.dll Fault Module Version: 6.1.7600.16385 Fault Module Timestamp: 4a5bdb3b Exception Code: c0000005 Exception Offset: 00038c39 OS Version: 6.1.7600.2.0.0.256.48 Locale ID: 1033 Additional Information 1: 4c0d Additional Information 2: 4c0d4d78887f76d971d5d00f1f20a433 Additional Information 3: 4c0d Additional Information 4: 4c0d4d78887f76d971d5d00f1f20a433
Exception Code: c0000005 is a protection fault. You tried to read/write to a bad memory address. Although it says the error occurred in ntdll, it is most likely an argument you passed into a function in there. Try attaching a debugger to the process when it is in the crashed state to see the call stack. At a rough guess I would say it is something to do with your command line processing
-
Exception Code: c0000005 is a protection fault. You tried to read/write to a bad memory address. Although it says the error occurred in ntdll, it is most likely an argument you passed into a function in there. Try attaching a debugger to the process when it is in the crashed state to see the call stack. At a rough guess I would say it is something to do with your command line processing
-
But If I run the application using clicking the exe, it is running and same exceptino is coming after quit the application. But If I run application as Admin, It works fine. What is the problem?
Then your code must do something that requires Admin rights (in the Cleanup) and you aren't handling the error properley. There is a vast number of things that this could be, but there is a fair chance that it is with a file. The Program Files and Windows directory are protected if UAC is enabled (Win Vista/7). For example, if you open a file in a protected location and try to read it without checking that it is open you may be using invalid data.
-
Hi, I deveopled a MFC appliocation using visual studio 2008. It is running fine on double clicking the exe but If I launch the same application using installer (install shield) it is not lanching and producing a exception. What might be the cause?
In addition to what others suggested, please make sure all the dependent files ( lib and dll) are located by your installer app. Hope this helps