pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alfred Perlstein <bright@wintelcom.net>
To: Oliver Fischer <nexus@fileseeker.net>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQclear() causes coredump
Date: Sun, 15 Oct 2000 13:25:09 -0700
Message-ID: <20001015132509.J272@fw.wintelcom.net> (raw)
In-Reply-To: <005501c036d4$6e37c810$0fed54d4@leveld.de>
References: <005501c036d4$6e37c810$0fed54d4@leveld.de>

* Oliver Fischer <nexus@fileseeker.net> [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



view thread (3+ messages)  latest in thread

Message-ID: <20001015132509.J272@fw.wintelcom.net>
Permalink:  ../20001015132509.J272@fw.wintelcom.net/
Also on:    postgresql.org/message-id/20001015132509.J272@fw.wintelcom.net

 · 

reply

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: bright@wintelcom.net, nexus@fileseeker.net
  Subject: Re: PQclear() causes coredump
  In-Reply-To: <20001015132509.J272@fw.wintelcom.net>

* 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