One thing I noticed is that you use log4cxx for logging. I find log4cxx has some memory leaking problems when I use it. If you are using MSVC, you can try to use this tool to find the source of memory leak.
http://www.codeproject.com/tools/visualleakdetector.asp -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, October 21, 2005 4:54 AM To: c-users Subject: memory leak problem hello,everybody: there is about 8K memory leak in my code below: try { XMLPlatformUtils::Initialize(); } catch (const XMLException& toCatch) { LOG4CXX_ERROR(m_logger, "Error during initializing XML parser!(" << X(toCatch.getMessage()) << ")" ); return; } SAX2XMLReader* parser = XMLReaderFactory::createXMLReader(); parser->setContentHandler(this); parser->parse(filename); delete(parser); try { XMLPlatformUtils::Terminate(); } catch (const XMLException& toCatch) { LOG4CXX_ERROR( m_logger, "Error during terminate XML parser!(" << X(toCatch.getMessage()) << ")" ); return ; } my parser just do nothing here, but there is about 8K memory leak. so i wonder whether i forget to delete something here ?
