beta2 no longer builds with MSVC?
Has anybody tried building beta2 or later with MSVC? It doesn'ät work for me - it builds fine, but whenever I run with it I get a coredump from it whenever I try to connect.
If I revert it to the 8.0 version of port/getaddrinfo.c, things work again.
The problem shows itself in that conn->addr_cur->ai_addr is NULL when it reaches the "CONNECTION_NEEDED" branch in PQconnectPoll().
Compiling with MingW appears to work fine.
//Magnus
Magnus Hagander wrote:
Has anybody tried building beta2 or later with MSVC? It doesn'?t work
for me - it builds fine, but whenever I run with it I get a coredump
from it whenever I try to connect.If I revert it to the 8.0 version of port/getaddrinfo.c, things work
again.The problem shows itself in that conn->addr_cur->ai_addr is NULL when
it reaches the "CONNECTION_NEEDED" branch in PQconnectPoll().Compiling with MingW appears to work fine.
Strange. Would you try this patch and see if it helps? It disables the
lookups to call the Win32-native getaddrinfo routines.
(I know you are busy so maybe someone else can test MSVC.)
Another posssible fix would be to do a 'continue' in the loop if
conn->addr_cur->ai_addr is NULL, and see if that works.
--
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