Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Dears,


I've developed an ATL COM server with Visual Studio 2008, C++. I call it for registering with 'Exefile.exe /RegServer'. It works fine when I execute it on a computer with Visual Studio 2008 installed, but it crashes if no installed. I've verified that the target computer has installed the same NET framework than used at building the project (3.5)and the correct version of Microsoft Visual C++ 2008 Redistributable, but there is no way. Only after installing Visual Studio 2008 it works OK. I receive only the error (in Spanish) "La aplicación no se ha podido inicializar correctamente (0xc0000008). Haga clic en Aceptar para terminar la aplicacion" (The application failed to initialize properly (0xc0000008)
Click on OK to terminate the application). I've tried on several target computers and verified the NET and Redistributable versions. Always working on 32 bits.

Anybody has a suggestion?,

Thanks in advanced,

Xavier
Posted
Updated 23-Feb-15 7:23am
v2
Comments
chandanadhikari 24-Feb-15 1:08am    
hi,
usually in such cases the vc++ redistributable is of different version that is why it behaves like this. Think you can use the dependency walker tool to see if what all dependencies are missing.
Maybe there is some dependency like some other dll or redistributable whose 32 bit version needs to be used and you are using 64 instead.
Launch the dependency walker tool(get it from internet) and drag drop the server binary on it.
Also while building the server you selected 32 bit build so it works only for 32 bit.

1 solution

You are in dll hell. Use the Tool dependency viewer to open your dlls on the target machine and see what is going on. My first tip is, that you have some debug dlls installed. Check for release build settings and use static linking.
 
Share this answer
 

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