Hi,
do you still see the leak if you remove the line
parser->setContentHandler(this)? If it disappears, you are probably
allocating some data inside the ContentHandler callbacks.
Alberto
At 17.54 21/10/2005 +0800, [EMAIL PROTECTED] wrote:
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 ?