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 "Kirill Shiff (JIRA)" <xe...@xml.apache.org> on 2005/11/05 01:16:19 UTC
[jira] Commented: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris
[ http://issues.apache.org/jira/browse/XERCESC-1213?page=comments#action_12356834 ]
Kirill Shiff commented on XERCESC-1213:
---------------------------------------
This problem is reproducible under Xerces version 2.7 as well..
It was detected by Top utility..
> delete XercesDOMParser object does not release memory under Sun Solaris
> -----------------------------------------------------------------------
>
> Key: XERCESC-1213
> URL: http://issues.apache.org/jira/browse/XERCESC-1213
> Project: Xerces-C++
> Type: Bug
> Components: Non-Validating Parser
> Versions: 2.3.0
> Environment: Sun Solaris Xerces 2.3
> Reporter: Kirill Shiff
> Priority: Critical
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org