[
https://issues.apache.org/jira/browse/XERCESC-1213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Boris Kolpackov closed XERCESC-1213.
------------------------------------
Resolution: Fixed
Fix Version/s: 3.0.1
Assuming fixed in 3.0.1 since there are no more reports of a similar problem.
Reopen if the problem is still in 3.0.1.
> delete XercesDOMParser object does not release memory under Sun Solaris
> -----------------------------------------------------------------------
>
> Key: XERCESC-1213
> URL: https://issues.apache.org/jira/browse/XERCESC-1213
> Project: Xerces-C++
> Issue Type: Bug
> Components: Non-Validating Parser
> Affects Versions: 2.3.0
> Environment: Sun Solaris Xerces 2.3
> Reporter: Kirill Shiff
> Priority: Critical
> Fix For: 3.0.1
>
>
> For following example Xerces does not release memory by delete m_pParser
> (nother by Terminate()) . It happends on Sun Solaris. Under windows it works
> OK.
> however for i > 0 there is no allocated memory increase...
> XMLPlatformUtils::Initialize();
> for(long i = 0; i < 5; i++)
> {
> DOMNode* m_pRoot = 0;
> DOMDocument* m_pDOMDocument = 0;
> XercesDOMParser* m_pParser = new XERCES_CPP_NAMESPACE_QUALIFIER
> XercesDOMParser();
> m_pParser->setDoNamespaces(true);
> m_pParser->setValidationScheme(AbstractDOMParser::Val_Auto);
> m_pParser->setExpandEntityReferences(false);
> m_pParser->setIncludeIgnorableWhitespace(false);
> m_pParser->useCachedGrammarInParse(false);
> m_pParser->parse(xmlFile);
> m_pDOMDocument = m_pParser->getDocument();
> ....
> m_pRoot = m_pDOMDocument->getFirstChild();
> m_pParser->resetDocumentPool();
> m_pParser->resetCachedGrammarPool();
> delete m_pParser, m_pParser = 0;
> }
> XMLPlatformUtils::Terminate();
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]