Thread: Memory Leak ?
View Single Post

   
  #7 (permalink)  
Old 04-16-2008, 02:02 AM
zhaoxin
 
Posts: n/a
Default Re: Memory Leak ?

TO:Hiroshi Inoue


>>> Could you try the dll at
>>> http://www.geocities.jp/inocchichich...dbc/index.html ?
>>> Recently I found a memory leak in some combination of connection
>>> options.

>>
>> I have tested the driver downloaded from this link .
>> but memory leak seems still exist .

>
>
> Could you tell me your connection string ?


My connection string is like this (with ODBC default settings):

SQLAllocHandle (SQL_HANDLE_ENV, NULL, &henv);

SQLSetEnvAttr(henv,SQL_ATTR_ODBC_VERSION,
(SQLPOINTER)SQL_OV_ODBC3,SQL_IS_INTEGER);

SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);

SQLSetConnectOption(hdbc,SQL_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF);

SQLConnect(hdbc,(SQLCHAR*)szDSN, (SQLSMALLINT)strlen(szDSN),
(SQLCHAR*)szUID, (SQLSMALLINT)strlen(szUID),
(SQLCHAR*)szAuthStr, (SQLSMALLINT)strlen(szAuthStr));

SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Reply With Quote