Received: from cwcom.net (email.mcmail.com [195.44.0.104]) by hub.org (8.9.3/8.9.3) with ESMTP id QAA71017 for ; Mon, 17 Apr 2000 16:14:00 -0400 (EDT) (envelope-from tim.brookes@mcmail.com) Received: from mcmail.com ([195.44.16.6]) by cwcom.net with Microsoft SMTPSVC(5.5.1877.387.38); Mon, 17 Apr 2000 21:13:56 +0100 Message-ID: <38FB6FA1.C63B030B@mcmail.com> Date: Mon, 17 Apr 2000 21:10:09 +0100 From: Tim Brookes X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.5-22 i586) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: libpq++ memory problems Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200004/103 I have written the following small piece of code to illustrate my problem. #include void callproc(){ PgDatabase* loStatsdb; PgEnv loEnv("","","","",""); loStatsdb = new PgDatabase(loEnv,"ftldb"); delete loStatsdb; }; main(){ while(1){ callproc(); }; }; The procedure 'callproc' is called in a continuous loop to emphasise this problem. Within the procedure all that happens is a new database connection is made and deleted. On my system this eats memory at an enormous rate. I do not know if this problem has been discussed before or fixed in newer versions of the library (my apologies if it has), but I would be most grateful of any info on resolving this memory leak. Tim Brookes