Boris,

I corrected the missing delete []buf ; that you pointed out but that does not 
help on solaris as expected.

Alberto / Boris , 

    Since  there is an issue with this code on Solaris  ? ,  can you suggest 
any alternative xerces APIs/code snippet to get the 
same DOMDocument::importNode functionality that possibly will prevent the leak. 

We are investigating the same.

Thanks for your quick replies . Your expert advice would be very helpful.
Anurag


> Date: Mon, 10 Mar 2008 15:26:14 +0100
> From: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> CC: [email protected]
> Subject: Re: FW: DOMDocument::importNode and memory leak on solaris
> 
> 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
> >
> 
> 

_________________________________________________________________
Need to know the score, the latest news, or you need your HotmailĀ®-get your 
"fix".
http://www.msnmobilefix.com/Default.aspx

Reply via email to