Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have an application project in VS2005. Solution consists of one exe and two dll projects. It works fine on VS2005.

But when i migrated the code to VS2008 it started to crash at the start. It fires following error in the output window.

Access violation reading error 0x00000130



at the same time i get the dialog box popped up with the message

Application error
The application failed to initialize properly (0x0000142)



Can anybody help in this reagard as it is working properly when developed using VS2005.
Posted
Comments
Albert Holguin 12-May-11 10:02am    
Are you allocating and deallocating memory across DLL boundries? That can cause this type of problem...

How do you expect us to be able to help you with it when all we know is the errors you're getting? Have you tried running it under the debugger to see WHERE you're getting the exception? It's your code so you should have some idea of where this might be happening.

I've converted dozens of projects from .Net 2.0 to 3.5, and from 3.5 to 4.0, and I have NEVER had an app not run as designed as a result of the conversion.
 
Share this answer
 
Comments
PrafullaVedante 12-May-11 5:53am    
Actualy this error is related to DLL initialization. I cannot figure out exact location of the error as it crashes even before the start of the execution.

Can you help me in this regard.
Albert Holguin 12-May-11 9:42am    
I have, try converting from studio 6 to studio 2008 or 2010, there will be lots of errors... anyway, harsh words there john
Please report as much as you can about the error message.
Moreover, the debugger is you friend. Have a look at the call stack window.
Did you convert both the executable and the dynamic libraries?
 
Share this answer
 
Comments
PrafullaVedante 12-May-11 6:11am    
yes i have converted all the related projects to VS2008.

There are 2 Dlls .... Flow is like this

Application--> DLL1--->DLL2--->OCI Wrapper DLL(3rd party)-->OCI.dll(Oracle dll)

oci.dll has coresponding oci.lib , it is a C api.


One more thing i found is, when i comment out OCI_Initialize function from the code, All gets loaded successfully. OCI_Initialize is a function from OCI_Wrapper.


Hence to verify, i have created a test application which will directly call the OCI_Wrapper functions. This testapplication works properly.

Now i am totally confused ...why is it so ?? All dependent DLLs and lib files are in the place. I am using all release builds configuration.
Albert Holguin 12-May-11 9:43am    
why are you not using the debugger? did you use the same platform (vs 2008) to build the test app?
PrafullaVedante 13-May-11 1:33am    
Yes, i used VS2008 to develop the testapp.

Debugger end up in showing some error within ntdll.
Sorry guys . Somebody had checked in some errorneous project files.?

I have taken some previous versions and everything is working properly in VS2008. ??Anyways thanks for the prompt replies
 
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