25 May 2012 09:11
Log4cxx and memory read problem while program is ending
Vladislav Krejcirik <vkrejcirik <at> gmail.com>
2012-05-25 07:11:54 GMT
2012-05-25 07:11:54 GMT
Hi All,
I got very simple program in C++ which uses log4cxx for logging. I
have successfuly build log4cxx in VS 2008 and linked log4cxx.lib and
log4cxx.dll to my project. I have problem while my program is closing.
I received error message:
Unhandled exception at 0x10171754 in Log4cxxTest.exe: 0xC0000005:
Access violation reading location 0xfeeefefe.
The memory couldn't to be read.
Is there any solution how can I clean log4cxx correctly when my
program is ending? I closed my app by CTRL+C.
The code is very simple:
#include <log4cxx/logger.h>
#include <log4cxx/xml/domconfigurator.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/helpers/exception.h>
using namespace log4cxx;
using namespace log4cxx::xml;
using namespace log4cxx::helpers;
LoggerPtr logger(Logger::getLogger("Log4cxxTest"));
BOOL CtrlHandler( DWORD fdwCtrlType )
{
switch( fdwCtrlType )
(Continue reading)
RSS Feed