From: Tim Brookes <tim.brookes@mcmail.com>
To: pgsql-interfaces@postgresql.org
Subject: libpq++ memory problems
Date: Mon, 17 Apr 2000 21:10:09 +0100
Message-ID: <38FB6FA1.C63B030B@mcmail.com> (raw)
I have written the following small piece of code to illustrate my
problem.
#include <pgsql/libpq++.h>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tim.brookes@mcmail.com
Subject: Re: libpq++ memory problems
In-Reply-To: <38FB6FA1.C63B030B@mcmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox