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 6DD979FA5E7 for ; Fri, 9 Jun 2006 08:18:48 -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 17842-07 for ; Fri, 9 Jun 2006 08:18:37 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id 605DA9FA098 for ; Fri, 9 Jun 2006 08:18:36 -0300 (ADT) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k59BK7wQ009124; Fri, 9 Jun 2006 13:20:07 +0200 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k59BK5CN009123; Fri, 9 Jun 2006 13:20:05 +0200 Date: Fri, 9 Jun 2006 13:20:05 +0200 From: Ludek Finstrle To: zhaoxin Cc: pgsql-odbc@postgresql.org Subject: Re: Memory Leak ? Message-ID: <20060609112005.GD8153@soptik.pzkagis.cz> References: <4487E76B.4000805@necas.nec.com.cn> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4487E76B.4000805@necas.nec.com.cn> User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88.2/1523/Fri Jun 9 09:10:10 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/48 X-Sequence-Number: 7796 > SQLAllocHandle (SQL_HANDLE_ENV, NULL, &henv); > SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc); > SQLConnect (hDBC, szDSN, SQL_NTS, szUID, SQL_NTS, szPasswd, SQL_NTS); > SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt); > while( i < 10){ > SQLPrepare(hstmt,(SQLCHAR*)szSql, SQL_NTS); > SQLBindParameter(......); > ...... Please could you send us the exact szSql and their BindParameters so we don't have to make steps into dark? BTW table structure and some sample data could help too. It speeds up finding the problem. > SQLExecute(hstmt); > SQLFreeStmt(hstmt,SQL_RESET_PARAMS); > } > SQLEndTran(SQL_HANDLE_DBC,(SQLHDBC)hdbc, SQL_COMMIT); > SQLFreeStmt(hstmt, SQL_CLOSE); > SQLFreeHandle(SQL_HANDLE_STMT, hstmt); > SQLDisconnect(hdbc); > SQLFreeHandle(SQL_HANDLE_DBC, hdbc); Regards, Luf