Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1213

delete XercesDOMParser object does not release memory under Sun Solaris

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.3.0
    • 3.0.1
    • Non-Validating Parser
    • None
    • Sun Solaris Xerces 2.3

    Description

      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();

      Attachments

        Activity

          People

            Unassigned Unassigned
            ruah Kirill Shiff
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: