Anurag,
if the same code works on Linux, it could be that Solaris has a
different policy in releasing the memory. Xerces is not doing anything
special other than releasing the memory it allocated.
Alberto
Anurag Jain wrote:
Not able to reach c-dev users ..c-users..
Please help .
Alberto and Boris ,
Please see below with details of how to reproduce this.
Thanks
-Anurag
------------------------------------------------------------------------
------------------------------------------------------------------------
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: DOMDocument::importNode and memory leak on solaris
Date: Mon, 10 Mar 2008 08:10:32 -0500
Alberto and Boris,
Thanks for your reply , I am releasing the dom document..but
that does not help I am attaching the example code (attached
and also pasted below ) and the way to reproduce .
The way to run this program is (I have attached the xml also
for your use ) ./xtesterd //ARPTable.xml 20 with a loop count
of 20 the memory footprint on SOLARIS (SunOS 5.10
Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V240) is around 45
M (check with top during the run )and does not get released ,
grows with larger counts NOTE : I notice the memory does get
released on Redhat linux on the dom document release Please
let me know.
Thanks -Anurag