sivabalan mani created XERCESC-2097:
---------------------------------------

             Summary: 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: Critical


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 are a work around,

Thanks



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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

Reply via email to