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 "Alberto Massari (JIRA)" <xe...@xml.apache.org> on 2004/12/16 11:16:07 UTC

[jira] Reopened: (XERCESC-1213) delete XercesDOMParser object does not release memory under Sun Solaris

     [ http://nagoya.apache.org/jira/browse/XERCESC-1213?page=history ]
     
Alberto Massari reopened XERCESC-1213:
--------------------------------------


> delete XercesDOMParser object does not release memory under Sun Solaris
> -----------------------------------------------------------------------
>
>          Key: XERCESC-1213
>          URL: http://nagoya.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://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org