Click here to Skip to main content
12,452,015 members (24,421 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VS2005 VS2008 C++ Visual-Studio , +
Hi,

I am facing an Application error as "The application failed to initialize properly (0xc0150002). Click on OK to terminate the application" while going to debug the code.

I am using Windows-XP with Visual Studio 2005. As per different suggestions by searching this on net, I install VC-redistributable and Service Pack 1. But the issue is not resolved.

Anybody know about this then please suggest.

Thank you in advance.
Posted 23-Feb-14 21:15pm
Comments
Mohibur Rashid 24-Feb-14 3:18am
   
Hard to answer, is it MFC?
   
How can it be not obvious: not enough information?
—SA
   
And please stop posting fake "answers".
—SA
Vaibhav_J_Jaiswal 24-Feb-14 3:26am
   
Yes I am using MFC for this. Whenever I am going to debug, before debugging OS send this message box.
Jochen Arndt 25-Feb-14 10:18am
   
Looking up the error in ntstatus.h:

// MessageId: STATUS_SXS_CANT_GEN_ACTCTX
//
// MessageText:
//
// Windows was not able to process the application binding information.
// Please refer to your System Event Log for further information.
//
#define STATUS_SXS_CANT_GEN_ACTCTX ((NTSTATUS)0xC0150002L)

So you might have a look in the system event log.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

This issue is definitely a VC redistributable dll missing. To debug observe the process monitor logs for CreateFile and find out which dl it is trying to load and failed to, then install corresponding dll.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 25 Feb 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100