Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wvk4Y-0007nj-Vb for pgsql-odbc@arkaria.postgresql.org; Sat, 14 Jun 2014 09:16:27 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wvk4X-0005NV-No for pgsql-odbc@arkaria.postgresql.org; Sat, 14 Jun 2014 09:16:25 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wvk4V-0005NG-Q1 for pgsql-odbc@postgresql.org; Sat, 14 Jun 2014 09:16:23 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Wvk4N-0002i8-Jz for pgsql-odbc@postgresql.org; Sat, 14 Jun 2014 09:16:22 +0000 Received: from ayaki.localdomain (106-69-37-35.dyn.iinet.net.au [106.69.37.35]) by mrelayeu.kundenserver.de (node=mreue102) with ESMTP (Nemesis) id 0LiCiR-1WRvER192R-00nQ7m; Sat, 14 Jun 2014 11:16:09 +0200 Message-ID: <539C12D4.8030503@2ndquadrant.com> Date: Sat, 14 Jun 2014 17:16:04 +0800 From: Craig Ringer Organization: 2nd Quadrant User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: "Inoue, Hiroshi" , "pgsql-odbc@postgresql.org" Subject: Re: NPE in psqlodbc30a.dll!PgDtc_set_property caused by pgendlista.dll!IAsyncPG::RequestExec References: <539A8EDA.8050503@2ndquadrant.com> <539B1E51.10008@tpf.co.jp> In-Reply-To: <539B1E51.10008@tpf.co.jp> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:PTBIfxvxrugBi02OwnHQnEYdUy2priOkpTKe6xq8IQS 49OBGPcAJ5d/fgMq7kSg+dle5WS5y7FMNHfblMZth+NVA+AA6l 4Ee2i4eH6YxRfWYIwTMHiZyRommu8nuL6M/G/V8UKoiOuEOjry VXxfarWUvBj6Q7cZ7LfeqPjwncHLMVXJX9LF267LVmFIyhTSax Io9tK5p9qBuBOCVIgtIQ8lixGGB3oa2RplcdlKcwcEkNm/yaPI XUr8NK4iz7cATidffjRMrBIoo3yCL0F79XyVuhWHyujWTh+V8t reSgjPZheEO4LX059JOQP4G6IX6TrZD3RhD1wrbmpbx0UwA/c3 5DIZsq5VKX2PerfnHos6oC2KYXQ2TWUZYYgnPSi7n X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org On 06/13/2014 11:52 PM, Inoue, Hiroshi wrote: > > Oops you are right. > Anyway it would take some time to fix it. > I would have to remember the code first. Yeah, I can imagine you don't poke around in that bit of the code a lot. The Dtc_set_property call looks like it's just simple cleanup, so I'm inclined to just shove it in an } else { } block. The cleanup performed makes no sense if the connection has already been closed. -- Craig Ringer http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc