Leak on SQLAPI++
Thursday, June 17th, 2004I was doing some malloc checking on Solaris today and noticed that I was getting a malloc trap on the auto-detect Sybase library version method of SQLAPI++. You can have the library determine the version of the library in use or you can specify it manually. Up to this point, I've been doing the auto-detection with the code:
mDBConnection.setOption("CS_VERSION") = "Detect"; mDBConnection.setOption("CS_APPNAME") = "myApp"; ... mDBConnection.Connect(server, user, password, SA_Sybase_Client); ...
but in the Connect() method the malloc checker saw a problem. So, now I'm trying to set the version I know I'm using (12.5) with the code:
mDBConnection.setOption("CS_VERSION") = "CS_VERSION_125"; mDBConnection.setOption("CS_APPNAME") = "myApp"; ... mDBConnection.Connect(server, user, password, SA_Sybase_Client); ...
Tests are looking much better so far, and that's really encouraging.