Received: from fw.wintelcom.net (bright@ns1.wintelcom.net [209.1.153.20]) by hub.org (8.10.1/8.10.1) with ESMTP id e9FKPER87493 for ; Sun, 15 Oct 2000 16:25:14 -0400 (EDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9FKP9V07707; Sun, 15 Oct 2000 13:25:09 -0700 (PDT) Date: Sun, 15 Oct 2000 13:25:09 -0700 From: Alfred Perlstein To: Oliver Fischer Cc: pgsql-interfaces@postgresql.org Subject: Re: PQclear() causes coredump Message-ID: <20001015132509.J272@fw.wintelcom.net> References: <005501c036d4$6e37c810$0fed54d4@leveld.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <005501c036d4$6e37c810$0fed54d4@leveld.de>; from nexus@fileseeker.net on Sun, Oct 15, 2000 at 08:19:17PM +0200 X-Archive-Number: 200010/117 X-Sequence-Number: 1474 * Oliver Fischer [001015 11:19] wrote: > Hi Folks, > > I write a program in c++ using PostgreSQL 7.0 at the moment. > During this, I have > written some small classes for accessing the database. One of > this classes is QtResultSet. I use them to manage my statments. > > To avoid memory leaks, I use the dtor to free the resultset with > PQclear(). Unfortunaly every call to PQclear causes a coredump. > What is my mistake? > > === QtResultSet.h === [snip] Perhaps you can post us a traceback from your coredump? If you could also give a relatively simple way to reproduce the bug with a driver program that uses your class it would be helpful. -Alfred