Message:

   The following issue has been resolved as FIXED.

   Resolver: Alberto Massari
       Date: Tue, 6 Jul 2004 8:18 AM

Fix is in CVS. Please verify.

Alberto
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XERCESC-1238

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XERCESC-1238
    Summary: DomWriter does not pass MemoryManager to XMLFormatter
       Type: Bug

     Status: Resolved
   Priority: Minor
 Resolution: FIXED

    Project: Xerces-C++
 Components: 
             DOM
   Versions:
             2.3.0

   Assignee: 
   Reporter: Michael Kopp

    Created: Fri, 2 Jul 2004 4:53 AM
    Updated: Tue, 6 Jul 2004 8:18 AM

Description:
file: dom/impl/DomWriterImpl.cpp
function: bool DOMWriterImpl::writeNode

The first thing it does is to create a XMLFormatter. It uses its assigned 
MemoryManager, but fails to pass it on into the Constructor, this XMLFormatter itself 
will use the global MemoryManager instead of the supplied one.
the line:

fFormatter = new (fMemoryManager) XMLFormatter(fEncodingUsed
                              ,fDocumentVersion
                              ,destination
                              ,XMLFormatter::NoEscapes
                              ,XMLFormatter::UnRep_CharRef);

should be changed to:

fFormatter = new (fMemoryManager) XMLFormatter(fEncodingUsed
                              ,fDocumentVersion
                              ,destination
                              ,XMLFormatter::NoEscapes
                              ,XMLFormatter::UnRep_CharRef,
                              fMemoryManager);


It is a minor thing but in our case a performance bottleneck.


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to