Re: PgDatabase, on heap construction results in SIGSEGV.
В списке pgsql-interfaces по дате отправления:
| От | Jeroen T. Vermeulen |
|---|---|
| Тема | Re: PgDatabase, on heap construction results in SIGSEGV. |
| Дата | |
| Msg-id | 20021018142308.GU11228@xs4all.nl обсуждение |
| Ответ на | PgDatabase, on heap construction results in SIGSEGV. (JSavage@data-mate.com (Savage)) |
| Список | pgsql-interfaces |
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
В списке pgsql-interfaces по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера