Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f0F0Fup89733 for ; Sun, 14 Jan 2001 19:15:56 -0500 (EST) (envelope-from pgsql-interfaces-owner@postgresql.org) Received: from news.tht.net (news.hub.org [216.126.91.242]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f0C4wsp89015 for ; Thu, 11 Jan 2001 23:58:54 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.1/8.11.1) id f0C4YV009200 for pgsql-interfaces@postgresql.org; Thu, 11 Jan 2001 23:34:31 -0500 (EST) (envelope-from news) From: "Steve Howe" X-Newsgroups: comp.databases.postgresql.interfaces Subject: Must implement PQnotifyFree() Date: Fri, 12 Jan 2001 02:34:57 -0200 Organization: ACME Lines: 38 Message-ID: <93m1gm$8vd$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 To: pgsql-interfaces@postgresql.org X-Archive-Number: 200101/136 X-Sequence-Number: 750 Hi folks, I'm co-developer of Delphi and Borland C++ Builder Zeos library (http://www.zeos.dn.ua) by Sergey Seroukhov which includes support for PostgreSQL. In fact, I'm dedicated Zeos PostgreSQL developer. We've run into a problem that we can't properly free the PPGnotify handle returned by PQnotifies() - simply because Delphi does NOT include free() routine (it does have it's own memory management routines of course). We could assume MSVC's malloc() is used and import free() from it, like this: procedure free(P: Pointer); cdecl; external 'msvcrt.dll'; // (which is the Delphi/Pascal equivalent of C's free()) - but that would be a crude hack and would probably not work in platforms other then windows (Kylix, Delphi's encarnation on Linux, is almost ready as most of you should know) or libpq.dll compiled with other C compilers then then currently being used. That's why we believe a PQnotifyFree() or similar function should be implemented since not everybody using libpq.dll is also using MSVC compiler. That could also lead to problems in other platforms using compilers with different allocation schemes. Of course it is trivial to implement such a function and this should be no trouble. Could you please consider it ? Of course nobody wants memory corruption in their applications and we don't like having to let those records allocated, but we can't currently do much about it. Thanks. Best Regards, Steve Howe Capella Development Group.