Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Using Pro*C in a Windows DLL
On 24 Feb 2005 10:13:10 -0800, "Keith Bloom" <akbloom_at_toad.net> wrote:
>I've been able to get the library to compile with minor changes as a
>Windows DLL, and when the client program calls the connect function the
>DLL makes the connection. However, any function called after that
>returns an ORA-01012 "not connected" error. Auditing sessions in the
>database shows that the connection persists while the program
>continues to run. So the connection is there, but the DLL is unable
>to find it again.
>
>Is there some way to get this to work on Windows?
Include a connect statement in your Pro*C code and reconsider what you are doing. Sessions aren't shared between Winblows threads
-- Sybrand Bakker, Senior Oracle DBAReceived on Thu Feb 24 2005 - 12:37:54 CST