Hi,Here is snippet of my code. This code throws exception while leaving 
the main function, something related to getAllAppenders() which it is unable to 
delete.
#include <log4cxx/logger.h>

#include <log4cxx/fileappender.h>


 
using namespace log4cxx;

using namespace log4cxx::spi;

using namespace log4cxx::helpers;


 
int _tmain(int argc, _TCHAR* 
argv[]){            


 
LoggerPtr logger = Logger::getLogger(_T("test"));

            AppenderPtr 
a1 = new FileAppender();

            
a1->setName(_T("testAppender1"));

            
logger->addAppender(a1);


 
            AppenderList 
list = logger->getAllAppenders();

            AppenderPtr 
aHat = list.front();

}This works fine if in project settings -> C/C++ -> Code Generation -> 
Runtime Library is set to Multi-threaded Debug DLL in Visual Studio. but if 
different runtime library is set, getAllAppenders() function throws 
exception of not able to delete the appenderlist. Any help on this will be 
appreciated. I am new member to this mailing list. Please ignore if I have put 
the mail wrongly.Thanks & Regards,Jenica

Reply via email to