U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ SQL » MSSQL connection cause memory leak
Re: MSSQL connection cause memory leak [message #47845 is a reply to message #47844] Mon, 10 April 2017 16:11 Go to previous messageGo to previous message
akebee is currently offline  akebee
Messages: 90
Registered: August 2011
Location: China
Member
yes,you`re right! Twisted Evil

add
SQLDisconnect(hdbc);
before
SQLFreeHandle(SQL_HANDLE_DBC, hdbc);

by the way,why not add "Close()" in "ODBCSession::~ODBCSession()"?
 
Read Message icon9.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to connect to ODBC??
Next Topic: OleDB fails to build
Goto Forum:
  


Current Time: Sun May 17 17:45:24 GMT+2 2026

Total time taken to generate the page: 0.00741 seconds