pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: zhaoxin <zhaox@necas.nec.com.cn>
To: pgsql-odbc@postgresql.org
Subject: Re: Memory Leak ?
Date: Fri, 16 Jun 2006 09:22:38 +0800
Message-ID: <449207DE.3090102@necas.nec.com.cn> (raw)
In-Reply-To: <449159E6.4090200@tpf.co.jp>
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>

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);



view thread (21+ messages)  latest in thread

Message-ID: <449207DE.3090102@necas.nec.com.cn>
Permalink:  ../449207DE.3090102@necas.nec.com.cn/
Also on:    postgresql.org/message-id/449207DE.3090102@necas.nec.com.cn

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: zhaox@necas.nec.com.cn
  Subject: Re: Memory Leak ?
  In-Reply-To: <449207DE.3090102@necas.nec.com.cn>
  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> <449207DE.3090102@necas.nec.com.cn>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox