Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2007

Tip: Looking for answers? Try searching our database.

Memory leak?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mcw.willart@interpolis.nl - 11 Jul 2007 15:02 GMT
Hi,

I created an app to use a RunAs om some Windows tooling (eg cmd.exe),
which I then start using Process.Start.
Every time I start a Process, the memory usage increases with
approximately 2MB.
I also created a second Form with a Webbrowser control on it. When I
show this second form, memory usage increases with about 40MB; closing
the form doesn't do any decrease in memory usage.

Anyone any idea?

Kind regards,

Mario
The Netherlands
Ignacio Machin ( .NET/ C# MVP ) - 11 Jul 2007 15:11 GMT
HI,

> Hi,
>
[quoted text clipped - 5 lines]
> show this second form, memory usage increases with about 40MB; closing
> the form doesn't do any decrease in memory usage.

You have to trust that the OS is managing the memory for you. Memory
management is a complex  matter to start with.

Must probable the 2MB increase that you see with the start of each process
is associated with a local heap (it might be empty @ start)

The memory is marked as free when you close the form, but most probably will
be kept with the prev. app just in case you want to reopen it again.

Again, do not worry about that UNLESS you see an out of memory issue

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.