You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "sivabalan mani (JIRA)" <xe...@xml.apache.org> on 2017/06/05 16:05:04 UTC
[jira] [Updated] (XERCESC-2097) Xerces C++ memory issue with Hp
Nonstop tandem
[ https://issues.apache.org/jira/browse/XERCESC-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
sivabalan mani updated XERCESC-2097:
------------------------------------
Priority: Blocker (was: Critical)
> 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 are a work around,
> Thanks
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org