Re: libpq docs about PQfreemem

From: "Zeugswetter Andreas ADI SD" <ZeugswetterA(at)spardat(dot)at>
To: "Bruce Momjian" <bruce(at)momjian(dot)us>, "Magnus Hagander" <magnus(at)hagander(dot)net>
Cc: "PGSQL Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: libpq docs about PQfreemem
Date: 2007-02-06 09:49:37
Message-ID: E1539E0ED7043848906A8FF995BDA57901C12E32@m0143.s-mxs.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


> > future for some reason. (the doc for the other functions say you
have to
> > use PQfreemem without mentioning any exceptions)
> >
> > Thoughts? Rip out or update?
>
> Are you saying that almost all Win32 binaries and libraries now can
free
> across DLLs?

You can under very narrow conditions. You need to force code generation
for "Multithreaded DLL" run-time libraries (e.g. in VC6 msvcrt.dll)
for all exe's and dll's.
This is bad for debugging, memory checkers and probably impossible
when using different compilers.
So you really need PQfreemem.

Andreas

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2007-02-06 09:54:01 Re: Pl/pgsql functions causing crashes in 8.2.2
Previous Message Richard Huxton 2007-02-06 09:34:36 Re: Referential Integrity and SHARE locks