From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Daniel Verite <daniel(at)manitou-mail(dot)org> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: PQtrace doesn't work |
Date: | 2005-09-26 00:09:18 |
Message-ID: | 200509260009.j8Q09In11992@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Daniel Verite wrote:
> Bruce Momjian wrote:
>
> > Is there a problem with a DLL writing to a file descriptor opened by
> > application code? I would think not, but perhaps.
>
> After some more testing, I've found out that it works only if the
> application code uses the shared version of the C library
> (msvcrt.dll)
> That means compiling with the /MD or /MDd options, or in
> the GUI, selecting in the project settings,
> C/C++ -> Code Generation -> Use runtime library -> Multithread DLL
> (or Debug Multithreaded DLL)
> That's apparently not the default when creating a new application
> with Visual Studio.
>
> libpq.dll must also having been compiled with /MD as well, but
> that should be the case unless the OP changed that himself
> in libpq/win32.mak
Yep, library version mismatch --- now documented.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From | Date | Subject | |
---|---|---|---|
Next Message | Brent Wood | 2005-09-26 00:49:40 | Re: Data Entry Tool for PostgreSQL |
Previous Message | Daniel Verite | 2005-09-25 19:17:59 | Re: PQtrace doesn't work |