Hi, I am writing a small class which has a PgDatabase instance as its private member, and in the constructor, I init it to be NULL (i.e., myclass::myclass():PgDatabaseInstanceMember(NULL) ), this causes a core dump, what's wrong with that? My intension is to get dbname from user's input, then create the instance using PgDatabase(dbname), because dbname should be provided by user. Thanks for any suggestions. inkle __________________________________________________ Do You Yahoo!? Bid and sell for free at http://auctions.yahoo.com
inkle c wrote: > > Hi, > > I am writing a small class which has a PgDatabase > instance as its private member, and in the constructor, > I init it to be NULL (i.e., > myclass::myclass():PgDatabaseInstanceMember(NULL) ), this causes a core > dump, what's wrong with that? I'm not too sure what you want, but how about myclass::myclass():PgDatabase() ? Cheers, Patrick
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера