From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Christoph Zwerschke <cito@online.de>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQprint under Windows
Date: Mon, 6 Feb 2006 20:24:19 -0500 (EST)
Message-ID: <200602070124.k171OJ128183@candle.pha.pa.us> (raw)
In-Reply-To: <43E7DB7F.7030101@online.de>
Christoph Zwerschke wrote:
> Bruce Momjian wrote:
> > Christoph Zwerschke wrote:
> >> I tried to compile PyGreSQL under Windows.
> >> Everything seems to work, except some functions which are using PQprint.
> >> Whenever these functions are called, I get a Windows exception.
> >> ...
> >> Can anybody confirm that PQprint is or was ever running under Windows?
> >> The 8.1 docu does not say that it is deprecated or not running under
> >> Windows. Can it be a bug?
> >
> > It should work. What exception are you getting, and what line in the C
> > file is it complaining about?
>
> Here is the exception I am getting:
> -------------------------------------------------------------------
> pythonw.exe caused an Invalid Handle at location 7c974ed1 in module
> ntdll.dll.
>
> Registers:
> eax=0021f6a0 ebx=00000000 ecx=0021f6e8 edx=7c91eb94 esi=7c38b528
> edi=00000000
> eip=7c974ed1 esp=0021f6a0 ebp=0021f6f0 iopl=0 nv up ei pl zr na
> po nc
> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> efl=00000246
>
> Call stack:
> 7C974ED1 ntdll.dll:7C974ED1 RtlRaiseStatus
> 7C95243C ntdll.dll:7C95243C RtlInitializeSListHead
> 7C91104B ntdll.dll:7C91104B RtlEnterCriticalSection
> 77C1174F msvcrt.dll:77C1174F fwrite
> 6311321C libpq.dll:6311321C pg_encoding_to_char
> 63114007 libpq.dll:63114007 pg_encoding_to_char
> 63114067 libpq.dll:63114067 pg_encoding_to_char
> 631094A2 libpq.dll:631094A2 PQprint
> 10003DC3 _pg.dll:10003DC3 _onexit dllcrt1.c:183
> _onexit_t _onexit(
> _onexit_t pfn = &0x00a7a110
> -------------------------------------------------------------------
>
> This happened when I was using the libpq.dll from the official binary
> distribution of PostgreSQL 8.1.2. When I compiled libpq.dll myself to
> find out more, amazingly everything worked fine, there was no exception.
> I compiled with nls enabled and without, both works. Only the dll which
> comes with the Win installer causes the problem. Any ideas what could be
> the problem here?
Wow, that is strange. Guess we will just wait for someone else to see
the failure if you can not reproduce it. Thanks for trying.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: pgman@candle.pha.pa.us, cito@online.de
Subject: Re: PQprint under Windows
In-Reply-To: <200602070124.k171OJ128183@candle.pha.pa.us>
* 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