X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 3093B9DC9C7 for ; Sat, 18 Mar 2006 19:30:40 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 40242-03 for ; Sat, 18 Mar 2006 19:30:42 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from samwel.tk (bsamwel.xs4all.nl [82.92.179.183]) by postgresql.org (Postfix) with ESMTP id 1A8639DC880 for ; Sat, 18 Mar 2006 19:30:31 -0400 (AST) Received: from localhost ([127.0.0.1]) by samwel.tk with esmtp (Exim 4.60) (envelope-from ) id 1FKksQ-0005NL-QY; Sun, 19 Mar 2006 00:30:30 +0100 Message-ID: <441C97F4.4060004@samwel.tk> Date: Sun, 19 Mar 2006 00:29:56 +0100 From: Bart Samwel User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Hiroshi Inoue CC: pgsql-odbc@postgresql.org Subject: Re: Most recent driver aborts transaction after one error References: <44194B56.5050304@samwel.tk> <4419FB0A.3000905@tpf.co.jp> <441A8E02.4080206@samwel.tk> <441B8B01.10108@tpf.co.jp> <441BEA51.7070606@samwel.tk> <441C95C5.4040801@tpf.co.jp> In-Reply-To: <441C95C5.4040801@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: bart@samwel.tk X-SA-Exim-Scanned: No (on samwel.tk); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.042 required=5 tests=[AWL=0.042] X-Spam-Score: 0.042 X-Spam-Level: X-Archive-Number: 200603/100 X-Sequence-Number: 7386 Hiroshi Inoue wrote: > Bart Samwel wrote: > >> Hiroshi Inoue wrote: >> >>> Bart Samwel wrote: >>> >>>> >>>> 2. I also encountered an access violation while exiting. The call >>>> stack was not very informative: >>>> >>>> ntdll.dll!_RtlpWaitForCriticalSection@4() + 0x5b >>>> ntdll.dll!_RtlEnterCriticalSection@4() + 0x46 >>>> psqlodbc35w.dll!023a097e() ntdll.dll!_RtlpFreeDebugInfo@4() >>>> + 0x57 ntdll.dll!_RtlDeleteCriticalSection@4() + 0x78 If >>>> you want me to try this with a debug-compiled psqlodbc35w, just say >>>> the word! >>> >>> >>> >>> It looks like a thread is about to Free a Handle while another thread >>> is wating for the Handle. >>> OK please send me the mylog output. >> >> >> I've attached two mylogs: in the first, I ordered my debugger to >> continue after the access violation, in the second, I immediately >> killed the program at the point of the access violation. If you need >> more info, let me know. >> > > Thanks. > Please retry the dll at > http://www.geocities.jp/inocchichichi/psqlodbc/index.html . > Check SQLGetInfo with the option SQL_DBMS_NAME or SQL_DBMS_VERSION > as well. OK, that fixes both the access violation and the DBMS_NAME and DBMS_VERSION issues. The DBMS_NAME is now "PostgreSQL", and the version is 8.1.3, as expected. Thanks for the quick response! --Bart