Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Using Pro*C in a Windows DLL

Re: Using Pro*C in a Windows DLL

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Thu, 24 Feb 2005 19:37:54 +0100
Message-ID: <am7s1193ll9linv7iscqinp0d1gmcekmov@4ax.com>


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 DBA
Received on Thu Feb 24 2005 - 12:37:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US