This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: memory leak problem with browser component in VB


[Soorya M.S]

>     I have an application that contain a Webbrowser
>  component to load html pages. When I navigate through
>  htmls the memory usage of my application is increasing. It
>  is not deallocating the memory after a long time also.
>      But when I minimize my application the unused memory
>  got freed and application memory used got decreased. But
>  in my application i cannot do minimize as that button
>  should be disabled(Its a strict requirement). Is there any
>  other way to deallocate the memory used by the browser
>  component?
>     Any information related to this will be very helpful
>  for me
>  thanks and regards

I don't think this actually indicates a memory leak, at least not on the
tests I did on my system.  I have observed behavior like this, too, and
noticed a decrease in reported memory use (that is, reported by the Windows
Task Manager on Windows 2000).  But I also noticed that when I restored the
window, the memory usage went back up similar to what it had been before
being minimized.

My guess is that the browser allocates memory and doesn't give it back (at
least, not right away), but this is not the same thing as a memory leak.
The browser seemed to use that same memory for other pages when they were
loaded.  I think I'm talking about Mozilla, if I recall correctly, and I
think I saw the same behavior on minimize/restore on IE (but my memory is a
bit hazy here).

I've also seen similar behavior on minimize/restore on a java program, so it
may be a Windows thing. It may only indicate something about how Windows
reports memory in use.

Cheers,

Tom P


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]