Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I am using OCILIB (http://orclib.sourceforge.net/[^]) to connect to ORACLE from my c++ program.
But whenever i try to connect to 11g database. It crashes while calling OCI_ConnectionCreate. Application works fine for 10g.


Any clue ?



It works for one more scenario,
If i create oledb connection to the same database and close it. I can connect through 11g as well. Dont know how it works :(
Posted
Comments
[no name] 23-Jul-12 7:55am    
Would best be answered at http://orclib.sourceforge.net
PrafullaVedante 25-Jul-12 11:00am    
It was crashing , as i was calling OCIInitialize function from dllmain function. i moved it to other function and the code is working....

Moral of the story : Thumb rule is , we should not use any user code in dllmain.
Joan M 25-Jul-12 13:02pm    
Not an answer but a joke: I've been tempted to write: I feel it quite normal, I'm having problems to get my phone connected to 3G and you want to connect to 11G! :OMG:
PrafullaVedante 25-Jul-12 23:01pm    
he he he Good one :)

1 solution

It was crashing , as i was calling OCIInitialize function from dllmain function. i moved it to other function and the code is working.... Moral of the story : Thumb rule is , we should not use any user code in dllmain.
 
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