Re: [log4cxx-users] Singleton class causes segfault at termination

2008-09-20 Thread Curt Arnold
On Sep 20, 2008, at 8:03 AM, Stefan Borovac wrote: Hi Oscar, just a guess. You are using an auto_pointer. That's not necessary as LoggerPtr is already a smart pointer. I had similar problems in the past. I have also designed a singleton which wrapps log4cxx and end up in massive termination p

Re: [log4cxx-users] Singleton class causes segfault at termination

2008-09-20 Thread Stefan Borovac
Hi Oscar, just a guess. You are using an auto_pointer. That's not necessary as LoggerPtr is already a smart pointer. I had similar problems in the past. I have also designed a singleton which wrapps log4cxx and end up in massive termination problems. Maybe it helps. Cheers Stefan Oscar Pere

[log4cxx-users] Singleton class causes segfault at termination

2008-09-19 Thread Oscar Pereira
Hello all, I have developed a C++ class (a sort of singleton..) to allow the same instance of the logger to be used in several places. The code is shown at the end of the email message. In main, I just do this: int main() { LOG4CXX_WARN(CLogger::GetLoggerInstance(), "hello"); return 0; } a