PQfinish also kills my dll

From: Jakob Lund <JLU(at)trapezesoftware(dot)dk>
To: "'pgsql-interfaces(at)postgreSQL(dot)org'" <pgsql-interfaces(at)postgreSQL(dot)org>
Subject: PQfinish also kills my dll
Date: 2001-12-28 09:27:15
Message-ID: 215DCB37FDA3D311B7A300508B8B52386B6F4B@TR-EXCHANGE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


I am building a new windows NT client-library on top og libpq to make a
dynaset-like access to data from a postgresql database. This is no problem
except there seems to be a bug in the PQfinish function. Every time the
function is called the dll craches (seriously). I can see that other people
have experienced similar craches using this function - could it be a bug?
I'm using version 7.1.3 sourcecode.

P.S. I'm not calling PQfinish more than once! even the code below crashes.

PGconn* m_Conn = PQsetdb(Host,PortString,NULL,NULL,DB);
if (PQstatus(m_Conn) != CONNECTION_BAD &&
m_Conn)
{
PQfinish(m_Conn);
return true;
}

-----------------------------------------------------------------------
Jakob Gaarde Lund
Trapeze Software Europe Phone: +45 87 44 16 31
Søren Frichs Vej 38K, 2 Fax: +45 87 44 16 01
DK-8230 Åbyhøj Email: jlu(at)trapezesoftware(dot)dk
-----------------------------------------------------------------------

Browse pgsql-interfaces by date

  From Date Subject
Next Message Mike Mascari 2001-12-28 13:46:46 Windows client binaries
Previous Message Bienvenido Bea 2001-12-27 09:37:33