Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: MSXML and memory leak

From: Tanish@-----------.---------.---
To: NULL
Date: 7/29/2008 9:54:00 PM

Hi,

thanks for the response. 

Yes, the memory leak in consitent in each pass ( from step 2 to step 5).  I 
had read an article on the GC of MSXML , but it didnt help much. 

Can you suggest anything else so that the memory leak problem solved. 


-tanish

"Anthony Jones" wrote:

> "Tanish" <Tanish@d...> wrote in message
> news:C0062A7E-AF43-4218-81A7-51E8F3D40528@m......
> > hi ,
> >
> >
> > I am building a VC++  application, in which i am using MSXML 6 parser.
> The
> > problem i am facing the memory consumption by the application. I had
> profiled
> > the application using AQTime and the profiler shows the increase the
> memory
> > consumption by the MSXML6.dll. Once the xml related task is over the
> memory
> > occupied by the application should get release but that does not happen
> and
> > the major part of memory is occupied by the MSXML6.dll .
> >
> > The basic outline of the application:
> >
> > 1. Starts the application ( average memory consumption at this stage is
> ~20MB)
> > 2. Starts a new thread ( for handling the XML function)
> > 3. Initializes the IXMLDOMDocument.
> > 4. Performs the xml related operations ( loading, reading- writing ,
> saving
> > the xml file )
> > ( When the application is in stage 4 ( mentioned above ) the memory
> > consumtion continuously increases.)
> > 5. Once the required xml task is over , releases the xmldomdocument
> > objectthe thread exits but still the memory consumtion is same.
> > 6. The memory is released only after the application is closed.
> >
> >
> > I searched a lot on the net about this problem but couldnt get the correct
> > solution.
> >
> > Can anyone suggest what to do?
> >
> 
> Having got passed step 1 have you tried having your app repeat steps 2 to 5
> several times before closing the app.  Does it "leak memory" by the same
> significant amount on each pass or after the first or second pass does the
> allocated amount of memory stabilise?
> 
> MSXML manages its own heap of memory for collecting nodes, this memory is
> shared by all documents.  It has a form of GC to manage this heap.  It also
> permentantly maintains a name table so if you have wide variety of
> namespaces and element names that can get quite big.
> 
> 
> -- 
> Anthony Jones - MVP ASP/ASP.NET
> 
> 
> 


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent