Re: using libpq.lib in Microsoft C++ (managed) - Mailing list pgsql-general

From Magnus Hagander
Subject Re: using libpq.lib in Microsoft C++ (managed)
Date
Msg-id 20071024135237.GE14328@svr2.hagander.net
Whole thread Raw
In response to using libpq.lib in Microsoft C++ (managed)  (luca.ciciriello@email.it)
List pgsql-general
On Wed, Oct 24, 2007 at 03:06:03PM +0200, luca.ciciriello@email.it wrote:
> Hi All.
> I've the necessity to call some functions of libpq.lib from my code. The
> problem is that my code is Managed C++ (as defined by Microsoft VisualStudio
> 2005). Managed C++ has a very special memory management and I don't know if
> using libpq.lib (an old C library) is a safe procedure. I've Already had
> problems using libpq.lib in a multi-threaded standard C++ and so I'm quite
> doubtful that all will work fine in Managed C++.
>
> Has some one had experience concerning my doubts?

If you are using Managed C++, you should probably be using npgsql instead
of libpq.

//Magnus

pgsql-general by date:

Previous
From: luca.ciciriello@email.it
Date:
Subject: using libpq.lib in Microsoft C++ (managed)
Next
From: Paul Silveira
Date:
Subject: Re: Extracting Index Creation Script