FreeOCI call does not unload Oracle dll's
Posted: Tue 06 Dec 2011 11:05
Hi,
I'm using:
Win7 32bit
Delphi XE2 Update 2
ODAC PRO 8.1.3 for Delphi XE2
Steps to reproduce:
1. Delphi -> New VCL Form Application
2. put "oracall" in uses clause;
3. in FormCreate put these two line:
InitOCI;
FreeOCI;
4. Run program...
If you use Process Explorer from Sysinternal and monitor the process while you step through the two lines you can see that oci.dll and many other oracle dll's are loaded with the InitOCI call but only oci.dll is unloaded when FreeOCI is called, leaving bunch of Oracle dll loaded.
I'm trying to change the oracle HOME property and load the correct dll's and I want to be able to do this without having to close my program and start another. Because once I've called InitOCI and connected to my session I'm stuck with the selected Oracle Home.
I've seen that SQL Navigator from Quest does load/unload Oracle DLL's perfectly
Reg,
Arni Thor
I'm using:
Win7 32bit
Delphi XE2 Update 2
ODAC PRO 8.1.3 for Delphi XE2
Steps to reproduce:
1. Delphi -> New VCL Form Application
2. put "oracall" in uses clause;
3. in FormCreate put these two line:
InitOCI;
FreeOCI;
4. Run program...
If you use Process Explorer from Sysinternal and monitor the process while you step through the two lines you can see that oci.dll and many other oracle dll's are loaded with the InitOCI call but only oci.dll is unloaded when FreeOCI is called, leaving bunch of Oracle dll loaded.
I'm trying to change the oracle HOME property and load the correct dll's and I want to be able to do this without having to close my program and start another. Because once I've called InitOCI and connected to my session I'm stuck with the selected Oracle Home.
I've seen that SQL Navigator from Quest does load/unload Oracle DLL's perfectly
Reg,
Arni Thor