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 / Windows Forms / WinForm General / June 2006

Tip: Looking for answers? Try searching our database.

Form's memory size on minimize

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
adiavn - 22 Jun 2006 15:41 GMT
Hello
I noticed a strange behavior for winforms:
I create an empty winform application (VS 2005), and changed the FormStyle
property to minimized.
According to the task manager, the release version of the application takes
several MB of memory.
Now I restored the application and minimized it again. The memory signature
dropped to 400kb.
What caused this effect? why only when I did it manually?
Thanks
Herfried K. Wagner [MVP] - 23 Jun 2006 00:18 GMT
"adiavn" <adiavn@hotmail.com> schrieb:
> I noticed a strange behavior for winforms:
> I create an empty winform application (VS 2005), and changed the FormStyle
[quoted text clipped - 6 lines]
> dropped to 400kb.
> What caused this effect? why only when I did it manually?

I suggest to take a look at this article:

The working set of an application is trimmed when its top-level window is
minimized
<URL:http://support.microsoft.com/?scid=kb;EN-US;293215>

Signature

M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>

adiavn - 25 Jun 2006 09:05 GMT
Thanks for the information.
How does this apply to a .Net application?
Will managed objects I have in memory (not form related) be trimmed?
Thanks

> "adiavn" <adiavn@hotmail.com> schrieb:
> > I noticed a strange behavior for winforms:
[quoted text clipped - 13 lines]
> minimized
> <URL:http://support.microsoft.com/?scid=kb;EN-US;293215>

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.