Re: PQtrace doesn't work
От | Daniel Verite |
---|---|
Тема | Re: PQtrace doesn't work |
Дата | |
Msg-id | 20050925211942.7339104@uruguay обсуждение исходный текст |
Ответ на | Re: PQtrace doesn't work (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: PQtrace doesn't work
|
Список | pgsql-general |
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 -- Daniel PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org
В списке pgsql-general по дате отправления: