[
https://issues.apache.org/jira/browse/XERCESC-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sivabalan mani updated XERCESC-2097:
------------------------------------
Description:
Hi,
I wrote simple dom parser and found that the parser is not releases even after
a call to release the parser / delete the parser itself. Looks like the memory
allocated by the parser was never released until you stop the process.
XMLPlatformUtils::Initialize();
parser = new XercesDOMParser();
errorHandler = (ErrorHandler*) new XmlDomErrorHandler();
parser->setErrorHandler(errorHandler);
parser->parse("xmlfile"); // through analysis the memory set in the
parse call was never released until you stop the code
m_doc = parser->getDocument();
for loop to read through all nodes and child
delete errorHandler;
delete parser;
XMLPlatformUtils::Terminate();
looking for a fixed version or a work around,
Thanks
was:
Hi,
I wrote simple dom parser and found that the parser is not releases even after
a call to release the parser / delete the parser itself. Looks like the memory
allocated by the parser was never released until you stop the process.
XMLPlatformUtils::Initialize();
parser = new XercesDOMParser();
errorHandler = (ErrorHandler*) new XmlDomErrorHandler();
parser->setErrorHandler(errorHandler);
parser->parse("xmlfile"); // through analysis the memory set in the
parse call was never released until you stop the code
m_doc = parser->getDocument();
for loop to read through all nodes and child
delete errorHandler;
delete parser;
XMLPlatformUtils::Terminate();
looking for a fixed version are a work around,
Thanks
> Xerces C++ memory issue with Hp Nonstop tandem
> ----------------------------------------------
>
> Key: XERCESC-2097
> URL: https://issues.apache.org/jira/browse/XERCESC-2097
> Project: Xerces-C++
> Issue Type: Bug
> Components: DOM
> Affects Versions: 3.1.1
> Environment: Hp Nonstop tandem
> Reporter: sivabalan mani
> Priority: Blocker
>
> Hi,
> I wrote simple dom parser and found that the parser is not releases even
> after a call to release the parser / delete the parser itself. Looks like the
> memory allocated by the parser was never released until you stop the process.
> XMLPlatformUtils::Initialize();
> parser = new XercesDOMParser();
> errorHandler = (ErrorHandler*) new XmlDomErrorHandler();
> parser->setErrorHandler(errorHandler);
> parser->parse("xmlfile"); // through analysis the memory set in the
> parse call was never released until you stop the code
> m_doc = parser->getDocument();
> for loop to read through all nodes and child
> delete errorHandler;
> delete parser;
> XMLPlatformUtils::Terminate();
> looking for a fixed version or a work around,
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]