Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory leak with SQLConnect()

Status
Not open for further replies.

pragmasystems

Technical User
May 17, 2001
3
GB
Hi,

I am using coding language C++ and database Sybase SQL Anywhere 5.0.

I have written a Windows NT service. This needs to interact with the database. I use SQLAllocHandle(), SQLConnect(), SQLPrepare() etc. commands to connect to the database.

All is well, but I have noticed that there is a memory leak after every connect/disconnect from the database.

The SQLDisconnect(), SQLFreeHandle() statements do not free all of the allocated memory resources.

Do you know of a way to free the remaining memory or of another way to connect to the database within a C++ service?

Cheers,
Cian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top