My program always crashes when I try to cache the LoggerPtr returned from
getLogger in a local static variable (i.e. singleton) like this:
LoggerPtr MyLogger()
{
  static LoggerPtr singleton =
log4cxx::LogManager::getLogger("some.logger");
  return singleton;
}


I assume this happens because of some APR related effect. Can someone please
shed light on this? Does this happen to you?

Reply via email to