From: Jeroen T. Vermeulen <jtv@xs4all.nl>
To: Savage <JSavage@data-mate.com>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PgDatabase, on heap construction results in SIGSEGV.
Date: Fri, 18 Oct 2002 16:23:08 +0200
Message-ID: <20021018142308.GU11228@xs4all.nl> (raw)
In-Reply-To: <c23c6cdc.0210151826.70007e3c@posting.google.com>
References: <c23c6cdc.0210151826.70007e3c@posting.google.com>
On Tue, Oct 15, 2002 at 07:26:25PM -0700, Savage wrote:
> I am having a problem constructing a PgDatabase object. If I create
> the object on the stack (as a var local to a function) then it
> constructs and connects to the DB ok. But, if I create and construct
> the object on the heap, a SIGSEGV occurs within libpq++.so.4.
Are you sure that's exactly where and why it occurs? I can't think of
any reason why libpq++ should care whether you use "PgDatabase Foo;" or
"PgDatabase *Bar = new PgDatabase;" - so could you post some minimal
code sample that produces the problem?
(Gratuitous plug: you may also want to look at libpqxx, the more modern
replacement for libp++: http://gborg.postgresql.org/project/libpqxx/ )
Jeroen
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: jtv@xs4all.nl, JSavage@data-mate.com
Subject: Re: PgDatabase, on heap construction results in SIGSEGV.
In-Reply-To: <20021018142308.GU11228@xs4all.nl>
* 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