Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> file descriptor leak in pro C
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