Since the two or three last ODAC versions we have problems when calling a dll with .net option activated.
We get the error message OCI_INVALID_HANDLE.
When using the oracle client everything is fine.
Any idea ?
Calling a DLL with NET option activated
hello again,
It took some time to build the sample...
It's a modified version of the DLL demo project shipped with ODAC
The following changes :
- We are using options.net := true
- We have a datamodule in the dll containing another Torasession
- We are using the assignconnect command to assign the session in the datamodule
The advantages :
We have many tables and stored procs in datamodules... having a Torasession as a visual component does not require such command in the source code :
OraQuery.session := Externalsession
because everything is done visualy in components. But then the assignconnect command is needed.
The problem :
When setting options.net := false everything is OK
When setting options.net := true we get message 'INVALID_OCI_HANDLE'
I'm available for more information if you need
Thanks
It took some time to build the sample...
It's a modified version of the DLL demo project shipped with ODAC
The following changes :
- We are using options.net := true
- We have a datamodule in the dll containing another Torasession
- We are using the assignconnect command to assign the session in the datamodule
The advantages :
We have many tables and stored procs in datamodules... having a Torasession as a visual component does not require such command in the source code :
OraQuery.session := Externalsession
because everything is done visualy in components. But then the assignconnect command is needed.
The problem :
When setting options.net := false everything is OK
When setting options.net := true we get message 'INVALID_OCI_HANDLE'
I'm available for more information if you need
Thanks