libpq++ : constructor - destructor problem with PgConnection

Started by Vlyminckx Fredericover 25 years ago1 messagesbugs
Jump to latest
#1Vlyminckx Frederic
frederic.vlyminckx@be.bepco.com

The program:

#include <libpq++.H>
#include <unistd.h>

void main() {
char *db = "dbname=ncadb";
while (true) {
PgConnection data(db);
}
}

The output:
Segmentation fault (core dumped)

Attachments:

CursorTest.Ctext/plain; charset=us-ascii; name=CursorTest.CDownload
coreapplication/octet-stream; name=coreDownload