Обсуждение: libpq++ : constructor - destructor problem with PgConnection

Поиск
Список
Период
Сортировка

libpq++ : constructor - destructor problem with PgConnection

От
Vlyminckx Frederic
Дата:
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)
#include <libpq++.H>
#include <unistd.h>


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



Вложения