libpq++ : constructor - destructor problem with PgConnection

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

libpq++ : constructor - destructor problem with PgConnection

От:
Vlyminckx Frederic <frederic.vlyminckx@be.bepco.com>
Дата:
Вложения:
The program:

#include 
#include 


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


The output:
Segmentation fault (core dumped)
#include 
#include 


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


FAQ