pragmasystems
Technical User
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
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