[xsd-users] CodeSynthesis DOm and Object Model

Boris Kolpackov boris at codesynthesis.com
Tue Apr 29 09:48:38 EDT 2025


Southworth Damon (ETAS-SID/XPC-Mnc2) <Damon.Southworth at uk.bosch.com> writes:

> However, if we go round again a second time, to create another object
> from the same XML, this time after creating the second 70Mb object,
> the DOM is not released and the 350Mb DOM does not appear to be
> returned to the system.

My first thought is the Xerces-C++ memory pool. In essence, it has
its own allocator which may hold on to the released memory. An easy
way to test this theory would be to de-initialize the Xerces-C++
runtime after constructing the object model and then initialize
it again before the subsequent parse.

I am surprised you only observe this on the second parse, though.



More information about the xsd-users mailing list