[
https://issues.apache.org/jira/browse/XERCESC-2097?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Scott Cantor resolved XERCESC-2097.
-----------------------------------
Resolution: Invalid
I believe you were explicitly told this is not a bug. If you're having issues,
it's probably a failure to understand memory handling in Linux. Freed memory
does not return to the OS until a process exists.
> 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.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]