473,396 Members | 1,608 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Form Minimize and Maximize

Hey Group,
When I minimize and then maximize a form (in windows application), I see a
significant drop in memory usuage in the task manager. I tried to do the
same thing programatically during the form load event, but I don't see any
significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan
Nov 16 '05 #1
7 4009
Check out this blog post:

Reducing WinForm Memory Footprint with SetWorkingSet
http://west-wind.com/weblog/posts/240.aspx

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I see a
significant drop in memory usuage in the task manager. I tried to do the
same thing programatically during the form load event, but I don't see any
significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan

Nov 16 '05 #2
Bhargavan,

Why are you trying to do this? Are you finding that it is consuming too
much memory and impacting other applications on the machine?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I see a
significant drop in memory usuage in the task manager. I tried to do the
same thing programatically during the form load event, but I don't see any
significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan

Nov 16 '05 #3
While I find the article informative, I think that the most important
line in it is:

In a way this is cheating the app – but it certainly improves the impression
of memory usage of the application on the machine.

That doesn't mean it's actually doing anything. In the end, people
really need to learn what the number in task manager means, and why they
^shouldn't^ use it to gauge memory consumption or performance of a .NET
application.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Rob Windsor [MVP]" <ro*****************@gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
Check out this blog post:

Reducing WinForm Memory Footprint with SetWorkingSet
http://west-wind.com/weblog/posts/240.aspx

--
Rob Windsor [MVP-VB]
G6 Consulting
Toronto, Canada
http://msmvps.com/windsor/

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I see
a significant drop in memory usuage in the task manager. I tried to do
the same thing programatically during the form load event, but I don't
see any significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan


Nov 16 '05 #4
Hey Nicholas,
Actually I am running my windows application over a terminal server. So at
any time there will be a number of instances of the same application on the
terminal server and thats the many reason for my memory concern. I am
already using SetProcessWorkingSetSize but I want to improve the performance
even further. Any suggestions?
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:OH**************@tk2msftngp13.phx.gbl...
Bhargavan,

Why are you trying to do this? Are you finding that it is consuming
too much memory and impacting other applications on the machine?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I see
a significant drop in memory usuage in the task manager. I tried to do
the same thing programatically during the form load event, but I don't
see any significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan


Nov 16 '05 #5
Bhargavan,

Without knowing about your application, I can't really say. However, I
would focus on the code that you write, as opposed to the CLR when looking
for performance gains. This isn't to say that your coding is bad or
whatnot, but usually, gains can be made in your own code before looking at
the environment or the runtime.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
Hey Nicholas,
Actually I am running my windows application over a terminal server. So at
any time there will be a number of instances of the same application on
the terminal server and thats the many reason for my memory concern. I am
already using SetProcessWorkingSetSize but I want to improve the
performance even further. Any suggestions?
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:OH**************@tk2msftngp13.phx.gbl...
Bhargavan,

Why are you trying to do this? Are you finding that it is consuming
too much memory and impacting other applications on the machine?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I see
a significant drop in memory usuage in the task manager. I tried to do
the same thing programatically during the form load event, but I don't
see any significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan



Nov 16 '05 #6
Hey Nicholas,
I don't think it is with my code. Even with just a blank form, you could see
the memory usuage drop drastically if you minimize and maximize it. You can
do this yourself. Just create a appliaction with a blank windows form in it.
Run it, see the memory usuage in task manager, then minimize and maximize
your application and check your memory usuage on the task manager again. You
will see a significant decrease in memory usuage. I am just trying to do the
same thing programatically (inside the form load event). But the memory drop
is not that significant and I donno why.
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:%2****************@TK2MSFTNGP14.phx.gbl...
Bhargavan,

Without knowing about your application, I can't really say. However, I
would focus on the code that you write, as opposed to the CLR when looking
for performance gains. This isn't to say that your coding is bad or
whatnot, but usually, gains can be made in your own code before looking at
the environment or the runtime.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
Hey Nicholas,
Actually I am running my windows application over a terminal server. So
at any time there will be a number of instances of the same application
on the terminal server and thats the many reason for my memory concern. I
am already using SetProcessWorkingSetSize but I want to improve the
performance even further. Any suggestions?
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in message news:OH**************@tk2msftngp13.phx.gbl...
Bhargavan,

Why are you trying to do this? Are you finding that it is consuming
too much memory and impacting other applications on the machine?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
Hey Group,
When I minimize and then maximize a form (in windows application), I
see a significant drop in memory usuage in the task manager. I tried to
do the same thing programatically during the form load event, but I
don't see any significant drop in memory usage. Anybody know why?
Thanks,
Bhargavan



Nov 16 '05 #7
What kind of machine are you developing in? I don't see that happening on
my laptop or my desktop for that matter.

--
in**@dowhileloop.com
http://dowhileloop.com website development
http://publicjoe.dowhileloop.com -- C# Tutorials

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:uF**************@TK2MSFTNGP10.phx.gbl...
Hey Nicholas,
I don't think it is with my code. Even with just a blank form, you could see the memory usuage drop drastically if you minimize and maximize it. You can do this yourself. Just create a appliaction with a blank windows form in it. Run it, see the memory usuage in task manager, then minimize and maximize
your application and check your memory usuage on the task manager again. You will see a significant decrease in memory usuage. I am just trying to do the same thing programatically (inside the form load event). But the memory drop is not that significant and I donno why.
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
Bhargavan,

Without knowing about your application, I can't really say. However, I would focus on the code that you write, as opposed to the CLR when looking for performance gains. This isn't to say that your coding is bad or
whatnot, but usually, gains can be made in your own code before looking at the environment or the runtime.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:O5**************@tk2msftngp13.phx.gbl...
Hey Nicholas,
Actually I am running my windows application over a terminal server. So
at any time there will be a number of instances of the same application
on the terminal server and thats the many reason for my memory concern. I am already using SetProcessWorkingSetSize but I want to improve the
performance even further. Any suggestions?
Bhargavan

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in message news:OH**************@tk2msftngp13.phx.gbl...
Bhargavan,

Why are you trying to do this? Are you finding that it is consuming too much memory and impacting other applications on the machine?
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bhargavan" <bh********@yahoo.co.in> wrote in message
news:Oc**************@tk2msftngp13.phx.gbl...
> Hey Group,
> When I minimize and then maximize a form (in windows application), I
> see a significant drop in memory usuage in the task manager. I tried to> do the same thing programatically during the form load event, but I
> don't see any significant drop in memory usage. Anybody know why?
> Thanks,
> Bhargavan
>



Nov 16 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sumit | last post by:
Hi all, I have an MDI form in which i open some other forms. I dont want the Control Box (having minimize, restore/maximize and close button) Even though I have set the controlbox property of...
3
by: Paul Welter | last post by:
I'm building a MDI application that has child forms. I'm trying to find a way to hide the inner boarder of the child frame area. Setting the FormBoarderStyle of the child form has no effect. ...
3
by: Don | last post by:
If you have a form that calls another form via the following code: Dim myForm as Form2 myForm = New Form2 myForm.Owner = Me MyForm.ShowDialog and you minimize the second form, the first form...
3
by: Stanav | last post by:
Hello all, Is there a way I can get into a form's close/minimize/maximize events when those buttons (the 3 small squared button in the upper right corner of a form) are clicked? For example, after...
2
by: jj | last post by:
I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are...
1
by: 1388-2/HB | last post by:
For vb2005. At design time I set the main form's WindoState to Maximized and I disabled the Maximize box. The user can Minimize the application only. When the program launches, the form is...
1
by: neeraj | last post by:
Hi people's I developed one MDI application with one MDI form and 2 child forms, form. Border style of first child forms set as Fixed3D and Window State set as normal (like dialog Box) and...
9
by: mohit.akl | last post by:
Hey guys & gals I am havng trouble modifying the control box. I want to make the maximise button invisible and have minimisise button instead of it. Like this _ X (not like _ o X ) How...
1
bwesenberg
by: bwesenberg | last post by:
Hello, I am not really sure if this is a form issue or not. I am running Access 2002 with a SQL back end for the database in question. The forms were original run from queries but are now...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.