I’ve been trying to run this log4cplus sample on my PC:
http://log4cplus.sourceforge.net/loglevel.html
I’ve created my LogLevel project using VS2010 and I’m using log4cplus v1.1.0.
My program compiles fine but when I step this line
Logger logger = Logger::getInstance(LOG4CPLUS_TEXT("main"));
I get the following error:
Unhandled exception at 0x75d5d3cf in LogLevel.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x0030ed2c..
in "..\Microsoft Visual Studio 10.0\VC\crt\src\new.cpp" file (Line 63)
How can I get around this problem?
I'm aware there is another SO thread talking about the same issue but unfortunately it is unresolved.