Application error 0xc0150002 when run MFC in Window 7
-
Hi, dear all I create an application using MFC in C++ 6.0, it works fine in Window XP, and in Window 7 mostly, but there is a computer with Win7, SP1 that cannot run the application, the error message is "The application was unable to start correctly (0xc0150002") click OK to close it". Can anybody tell me what cause this kind of error, how to fix it? Thanks!
-
Hi, dear all I create an application using MFC in C++ 6.0, it works fine in Window XP, and in Window 7 mostly, but there is a computer with Win7, SP1 that cannot run the application, the error message is "The application was unable to start correctly (0xc0150002") click OK to close it". Can anybody tell me what cause this kind of error, how to fix it? Thanks!
I'd guess that a DLL is not found. Can you try to debug the application with VS on the failing machine. If not, try to use the Dependancy Walker application to determine what DLL is failing to load. It might also be a bad DLL, in that it loads okay, but an entry point that is required is not found. Again Dependancy Walker will be able to tell you this. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
-
I'd guess that a DLL is not found. Can you try to debug the application with VS on the failing machine. If not, try to use the Dependancy Walker application to determine what DLL is failing to load. It might also be a bad DLL, in that it loads okay, but an entry point that is required is not found. Again Dependancy Walker will be able to tell you this. :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
-
Chris, Thanks for your reply. Since the application is created by C++ 6.0, it cannot be debugged in Win 7. Maybe the dependency walker is the only way. Thanks again!
Andraw111 wrote:
Since the application is created by C++ 6.0, it cannot be debugged in Win 7.
:confused: :confused: :confused: While there are issues related to installing the software in order to establish a debugging environment, what is there to specifically prohibit this? :)
Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]
-
Chris, Thanks for your reply. Since the application is created by C++ 6.0, it cannot be debugged in Win 7. Maybe the dependency walker is the only way. Thanks again!
Make sure to check the EventLog (Application + System) it can many times have interesting information, about failed program starts. Also even if you find it impossible to install VC6 on Win7, then you can still debug using WinDBG (Windows Debugging Tools).
-
Make sure to check the EventLog (Application + System) it can many times have interesting information, about failed program starts. Also even if you find it impossible to install VC6 on Win7, then you can still debug using WinDBG (Windows Debugging Tools).