X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id B00139FA5D2 for ; Thu, 15 Jun 2006 22:24:08 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 79580-01 for ; Thu, 15 Jun 2006 22:24:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from new-mail.nec.com.cn (new-mail.nec.com.cn [211.100.22.21]) by postgresql.org (Postfix) with ESMTP id 3214C9FA160 for ; Thu, 15 Jun 2006 22:24:00 -0300 (ADT) Received: from internal-mail.nec.com.cn ([172.28.88.254]) by new-mail.nec.com.cn with ESMTP id k5G1NhH2011579 for ; Fri, 16 Jun 2006 09:23:43 +0800 (CST) (envelope-from zhaox@necas.nec.com.cn) Received: from mailsv.necas.nec.com.cn (localhost.localdomain [127.0.0.1]) by internal-mail.nec.com.cn (Postfix) with ESMTP id CF6CB17800A for ; Fri, 16 Jun 2006 09:39:40 +0800 (CST) Received: from [172.28.9.250] (jianglong.necas.nec.com.cn [172.28.9.250]) by mailsv.necas.nec.com.cn (8.11.6/8.11.6) with ESMTP id k5G1Nh831083 for ; Fri, 16 Jun 2006 09:23:43 +0800 Message-ID: <449207DE.3090102@necas.nec.com.cn> Date: Fri, 16 Jun 2006 09:22:38 +0800 From: zhaoxin User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-odbc@postgresql.org Subject: Re: Memory Leak ? References: <4487E76B.4000805@necas.nec.com.cn> <20060609112005.GD8153@soptik.pzkagis.cz> <448FF5A6.1060202@necas.nec.com.cn> <449082F3.60008@tpf.co.jp> <44913243.7030708@necas.nec.com.cn> <449159E6.4090200@tpf.co.jp> In-Reply-To: <449159E6.4090200@tpf.co.jp> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-MAIL: new-mail.nec.com.cn k5G1NhH2011579 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/118 X-Sequence-Number: 7866 TO:Hiroshi Inoue >>> Could you try the dll at >>> http://www.geocities.jp/inocchichichi/psqlodbc/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);