- **status**: open --> closed
- **assigned_to**: Václav Haisman
---
** [bugs:#341] Exception on app exit**
**Status:** closed
**Group:** v1.2.x
**Labels:** appender SharedAppenderPtr
**Created:** Fri Apr 07, 2017 09:08 AM UTC by BTree
**Last Updated:** Fri Apr 07, 2017 09:33 AM UTC
**Owner:** Václav Haisman
I have tested log4cplus in win32 app,
~~~
MainAppWindow::MainAppWindow()
{
...
log4cplus::initialize();
log4cplus::Logger logger = log4cplus::Logger::getInstance(LOG4CPLUS_TEXT("SmartSong"));
SharedAppenderPtr appender_ptr(new Win32DebugAppender());
logger.addAppender(appender_ptr);
...
}
~~~
When app exit, it throw exception in following.
~~~
SharedObject::removeReference()
{
...
if (LOG4CPLUS_UNLIKELY (destroy))
delete this;
}
~~~
---
Sent from sourceforge.net because log...@li... is subscribed to https://sourceforge.net/p/log4cplus/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/log4cplus/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |