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

Home -> Community -> Usenet -> c.d.o.tools -> file descriptor leak in pro C

file descriptor leak in pro C

From: g <a_at_a.co>
Date: Mon, 23 Apr 2001 09:54:47 +0200
Message-ID: <3ae3d113@news.bezeqint.net>

I have a C program that connects to oracle via the the statement

     EXEC SQL whenever sqlerror do sql_connect_error("init");

    EXEC SQL CONNECT :cinfo;

if there is some sort of connect error, the sql_connect routine sets a flag that is process after the CONNECT.

After a failed connect, i run the statement

EXEC SQL ROLLBACK RELEASE I though the above would release any resources i have associates with oracle. However. if ithe listser is up, but the database is down the connect is not succesful, but the file descriptor remains open in my process.

Is there anyway of clsong that file descriptor?

thanks for any help
GA Received on Mon Apr 23 2001 - 02:54:47 CDT

Original text of this message

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