Click here to Skip to main content
15,881,803 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have VS 2005 dll project. DLL gets load in test application properly.
When i converted the DLL project to VS 2008 project using VS migration wizard.It compiles successfully and produces a DLL. But when i run Test application , It fires the error

The application failed to initialize properly (0xc0000142).

Test application is also a VS 2008 project. All required dependencies are in place and compiled using VS 2008 only.
Can anyone tell/help me the reason behind it.

-Prafulla


LITTLE UPDATE

I am using OCI(Oracle C interface) API in one of my dependent dll. When i commented
OCI_Cleanup()
and
OCI_Initialize()
function calls, Application gets executed successfully.

Can anybody tell me what would be the problem with these OCI functions.
Posted
Updated 10-May-11 20:06pm
v4

Does the error happen on your dev machine, or a different one?

You may just need to install redistributable packages for visual c++ 2008:
http://www.microsoft.com/downloads/en/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en[^]
Or Visual C++ 2008 SP1:
http://www.microsoft.com/downloads/fr-fr/details.aspx?FamilyID=a5c84275-3b97-4ab7-a40d-3802b2af5fc2[^]

I face this error on Dev machine.

Are you using OpenCV or some other libraries? A few weeks ago, I had headaches because I upgraded my OpenCV and I had a similar error. I couldn't make it work properly with Visual Studio 2008 so I gave up and went back to the previous version I had...
 
Share this answer
 
v2
Comments
PrafullaVedante 6-May-11 9:51am    
I face this error on Dev machine.
Olivier Levrey 6-May-11 10:03am    
I updated my answer. Just an idea...
PrafullaVedante 6-May-11 10:23am    
Nope, I am not using openCV.
Sorry guys . Somebody had checked in some errorneous files.
I have taken some previous versions and everything is working properly in VS2008.

Anyways thanks for the prompt replies
 
Share this answer
 
Comments
Albert Holguin 16-May-11 19:24pm    
happens...
Excuse me. I have come across similiar problems. And i fail to remember what i had done with related files.
Working environment is also vs2008.

It could run properly in debug mode. However, it fails in release mode notifying me "Application failed to initialize properly(0xc0000034)".

Could you help me?
 
Share this answer
 
Comments
PrafullaVedante 16-Jan-14 2:37am    
Please check the function DllMain of the problematic dll. Remove everything from the function and try. We should not call anything from the DllMain whose code is resided in another dll.
shdj111 16-Jan-14 3:28am    
The problem occurs in exe. And orignially, it could run correctly. However, yesterday i replace several dll related to vs2008 in "c:\windows\system" or other directories(I cann't remember), the problem then occurs. It was ok in debug mode.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900