Friday, November 09, 2012 7:30 PM
I have custom built VC++ application with following settings ( built using Visual Studio 2008 SP1 for x64 platform)
MFC in shared DLL mode, Static link to ATL.
On one particular system, the binary fails to run with following error message in the dialogue box
"The application was unable to start correctly (0xc0000142)" without any additional information but the same binary is able to run on another identical system configuration without any problem.
My question is, the system is in production environment, how can i debug this issue? what are the possible causes?
Saturday, November 10, 2012 5:03 AM
Be sure all pre-req are there. Use dependancy walker to find any dependancy.
If you do a debug's build does that run correctly ? If yes, then it's surelly a stack corruption issue. (vc protect the memory zone in a debug's build)
Monday, November 12, 2012 5:25 AMModerator
Monday, November 12, 2012 7:02 AM
Thanks for the replies. It is not a debug build, released binary in a production environment.
since it is a production environment, I will have to request permission to run dependency walker on the system.
surprisingly same binary is running without any issues on another identical system and matching all the software and OS patches.
- Marked As Answer by K_evin ZhuMicrosoft Contingent Staff, Moderator Friday, November 16, 2012 1:46 AM