DLL Passing Session Share, Oracle Monitor

Robertio

Member²
We have something strange going on when passing a session to a dll using the share. Tried downloading the example and it does the same thing, so it does not appear to be down to our code.

The situation:
Start up main program and Oracle Monitor adds an entry under applications
Call the dll - OM sets the application to inactive and creates a new one.
Exit the dll - OM continues to use the second application.

I would have thought that it should either use the one appication for the whole lot, or, switch to a second application during the dll and the back to the original application on terminte of the dll?
 
I'm not sure what exactly the problem is. Can you clarify?

------------------
Marco Kalter
Allround Automations
 
We have a program (.exe) which calls a Dll (.dll). In the Dll we use the same TOracleSession which we use in the (.exe), we pass the session though as a parameter. When we watch the process through Oracle Monitor the Oracle Monitor sets the application session to inactive and creates a new Session for the Dll. When we exit out of the DLL it continues to use the second session, I would have thought the Oracle Monitor would have disconnected the second session and activated the first session again because we were back in the application, Is this Correct?
 
Not yet. I will let you know when I have some findings.

------------------
Marco Kalter
Allround Automations
 
Back
Top