469,963 Members | 1,806 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,963 developers. It's quick & easy.

Connect & Disconnect

In testing our app, we connected and disconnected like 1000 times and
noticed a 5 meg memory leak. The sequence of connecting and disconnecting
is as follows:

1. OdbcSQLAllocHandle
2. OdbcSQLAllocConnect
3. OdbcSQLConnect
4. OdbcSQLDisconnect
5. OdbcSQLFreeConnect
6. OdbcSQLFreeEnv

.. . . is there some step missing that might prevent the leak?

Thanks.

-g
Nov 1 '06 #1
2 1948
Geoff wrote:
In testing our app, we connected and disconnected like 1000 times and
noticed a 5 meg memory leak. The sequence of connecting and disconnecting
is as follows:

1. OdbcSQLAllocHandle
2. OdbcSQLAllocConnect
3. OdbcSQLConnect
4. OdbcSQLDisconnect
5. OdbcSQLFreeConnect
6. OdbcSQLFreeEnv

. . . is there some step missing that might prevent the leak?
Where does the leak occur? At the database server or at the client? Could
you locate where the leak happens? In the CLI (ODBC) functions or maybe it
is your own application?

That doesn't seem to be the DB2 CLI driver. Have you tried the IBM driver?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 1 '06 #2
Leaks on the client side but these are low level calls, not from the app.

-g
"Knut Stolze" <st****@de.ibm.comwrote in message
news:ei**********@lc03.rz.uni-jena.de...
Geoff wrote:
>In testing our app, we connected and disconnected like 1000 times and
noticed a 5 meg memory leak. The sequence of connecting and
disconnecting
is as follows:

1. OdbcSQLAllocHandle
2. OdbcSQLAllocConnect
3. OdbcSQLConnect
4. OdbcSQLDisconnect
5. OdbcSQLFreeConnect
6. OdbcSQLFreeEnv

. . . is there some step missing that might prevent the leak?

Where does the leak occur? At the database server or at the client?
Could
you locate where the leak happens? In the CLI (ODBC) functions or maybe
it
is your own application?

That doesn't seem to be the DB2 CLI driver. Have you tried the IBM
driver?

--
Knut Stolze
DB2 Information Integration Development
IBM Germany

Nov 1 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Amir | last post: by
2 posts views Thread by yyy | last post: by
2 posts views Thread by http://www.visual-basic-data-mining.net/forum | last post: by
2 posts views Thread by dan kisting | last post: by
3 posts views Thread by Laurence | last post: by
3 posts views Thread by jc | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.