Can I subscribe to information on new tests?
PgDatabase, on heap construction results in SIGSEGV.
Hello Guest
  
  • Login
• Register…
• Start blog
  • Who, Where, When
• What can I do?
• What to Read?
  • Polls
• Avatars
• Interests
  • Cities and Countries
• Random blog
• Users search
  • Search
• Games
• Tests
• QAIX
  • Сообщества
• Talxy Chat
• Horoscope
• Online
 
Зарегистрируйся!

QAIX > PostgreSQL database development > PgDatabase, on heap construction results in SIGSEGV. 1 September 2008 06:32:09

  Recent blog posts: 
  They have birthday today: 
  Forums:   
  Discuss: 
  Recent forum topics: 
  Recent forum comments:
  Moderators:

PgDatabase, on heap construction results in SIGSEGV.

Savage 1 September 2008 06:32:09
 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.

Has anyone got any ideas what could be causing this? I have only been
programming under linux for a month or so at this stage, but I've a
lot of Win32 experience. Any pointers to things that a Win32 to Linux
newbie would not be aware of would be much appreciated.

Thanks,
John

-------------------­--------(end of broadcast)---------­------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHer­e" to majordomo@postgresq­l.org)

Add comment
Jeroen T. Vermeulen 18 October 2002 17:23:08 permanent link ]
 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.postgr­esql.org/project/lib­pqxx/ )


Jeroen


-------------------­--------(end of broadcast)---------­------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgres­ql.org/users-lounge/­docs/faq.html

Add comment
 

Add new comment

As:
Login:  Password:  
 
 
  
 
Пожалуйста, относитесь к собеседникам уважительно, не используйте нецензурные слова, не злоупотребляйте заглавными буквами, не публикуйте рекламу и объявления о купле/продаже, а также материалы нарушающие сетевой этикет или УК РФ.


QAIX > PostgreSQL database development > PgDatabase, on heap construction results in SIGSEGV. 1 September 2008 06:32:09

see also:
Problem with Encoding
Win 9x and Shell Commands
PHP 4.0.6 bug
пройди тесты:
see also:
Do you know my small bro is a star…
My brother taught me this prayer
The song my brother taught me

  Copyright © 2001—2008 QAIX
Idea: Miсhael Monashev
Помощь и задать вопросы можно в сообществе support.qaix.com.
Сообщения об ошибках оставляем в сообществе bugs.qaix.com.
Предложения и комментарии пишем в сообществе suggest.qaix.com.
Информация для родителей.
Write us at:
If you would like to report an abuse of our service, such as a spam message, please .