473,795 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Why are simple windows form take so much memory

I have created an empty windows forms project, added one form and loaded it,
i checked in task manager and the application takes 18,748 MB of ram, why
does it take som much to load just one form?

Also i have build a larger application and with every step it uses more and
more memory it doesnt get smaller, everty data object i create gets
disposed, why is it?

Where can i find more info about how memorty is handeld.

Thanks
Nov 21 '05 #1
9 1509
"Shrage H. Smilowitz" <mi***********@ hotmail.com> schrieb:
I have created an empty windows forms project, added one form and loaded
it, i checked in task manager and the application takes 18,748 MB of ram,
why does it take som much to load just one form?


The Memory Mystery
<URL:http://getdotnetco.web 101.discountasp .net/GdncStore/free/Articles/The%20Memory%20 Mystery.htm>

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

Nov 21 '05 #2
Hi,

The dot net framework uses alot of memory. Its not the form.

Ken
-------------------
"Shrage H. Smilowitz" <mi***********@ hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I have created an empty windows forms project, added one form and loaded it,
i checked in task manager and the application takes 18,748 MB of ram, why
does it take som much to load just one form?

Also i have build a larger application and with every step it uses more and
more memory it doesnt get smaller, everty data object i create gets
disposed, why is it?

Where can i find more info about how memorty is handeld.

Thanks

Nov 21 '05 #3
Thanks, this is information i was looking for.

"Shrage H. Smilowitz" <mi***********@ hotmail.com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
I have created an empty windows forms project, added one form and loaded
it, i checked in task manager and the application takes 18,748 MB of ram,
why does it take som much to load just one form?

Also i have build a larger application and with every step it uses more
and more memory it doesnt get smaller, everty data object i create gets
disposed, why is it?

Where can i find more info about how memorty is handeld.

Thanks

Nov 21 '05 #4
Shrage,

That is as it is always been the same problem. With every new program
language (or operatingsystem ) will the simple applications use more memory,
while instead of that the more advanced applications use less.

The first "Hello World" applications used probably less than 100bytes.

Just my thought,

Cor
Nov 21 '05 #5
Cor Ligthert wrote:
Shrage,

That is as it is always been the same problem. With every new program
language (or operatingsystem ) will the simple applications use more memory,
while instead of that the more advanced applications use less.

The first "Hello World" applications used probably less than 100bytes.

Just my thought,

Cor

And they were built for machines with 10K memory available LOL
...... The old days weren't so gr8. If they were we'd still be driving
Model T Fords. LOL

Nov 21 '05 #6
Hi Herfried,

As you read that article, do you think he has gotten the definitions
for Minimum Working Set and Maximum Working Set transposed?

It seems to me that his definition for Minimum Working Set is actually
the definition of the Maximum Working Set and vice versa.

Just wondering if anyone else noticed.

Nov 21 '05 #7
Chris,

"Chris Dunaway" <du******@gmail .com> schrieb:
As you read that article, do you think he has gotten the definitions
for Minimum Working Set and Maximum Working Set transposed?

It seems to me that his definition for Minimum Working Set is actually
the definition of the Maximum Working Set and vice versa.


I think the description is OK and has been taken from this page:

Platform SDK: DLLs, Processes, and Threads -- 'SetProcessWork ingSetSizeEx'
<URL:http://msdn.microsoft. com/library/en-us/dllproc/base/setprocessworki ngsetsizeex.asp >

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

Nov 21 '05 #8
The author did indeed have the definitions backwards. I e-mailed him
about it and he put up a correction immediately.

Nov 21 '05 #9
Chris,

"Chris Dunaway" <du******@gmail .com> schrieb:
The author did indeed have the definitions backwards. I e-mailed him
about it and he put up a correction immediately.


Oh, that's why I didn't see the wrong definitions when I looked at the page
:-).

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

Nov 21 '05 #10

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

Similar topics

6
3279
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that, no memory is lying around. GC reports only 84k of allocations. Starting 5-10 of this apps is going to start taking a considerable amount of memory. Is there a way to reduce this? Tom
11
2717
by: JKop | last post by:
Take the following simple function: unsigned long Plus5Percent(unsigned long input) { return ( input + input / 20 ); } Do yous ever consider the possibly more efficent:
7
3046
by: Office Drone | last post by:
I'm a bit confused about memory usage, and for some reason I wasn't able to find a single point-of-call to get the amount of memory available. If we take, for instance, the Windows platform: There is * Virtual memory you can allocate (VirtualAlloc) * Global memory you can allocate (GlobalAlloc) * Local memory you can allocate (LocalAlloc)
0
7569
by: Tal Sharfi | last post by:
Hi everyone I recently had the need for StringGrid object same as the one that Delphi has. An object that helps show lists of other objects in a simple grid. I searched the news groups and found none, so, I wrote one and decided to share it with you. It's a very simple one with few functions. I derived a DataGrid and added to it a DataTable to hold the data. The object itself is handling the synchronization between them, because...
2
1875
by: iwdu15 | last post by:
hey, i was wondering if 1) anyone could tell me whats wrong with my code, i did a little fixing to the msdn version fo this, or 2) how to make a simple program that will connect and listen for connections async. if the user pushes the selected buttons. i just want a program that connects to another computer on the port and IP address selected and if the other computer is listening, then connect to it but this code doesnt work : Imports...
3
7490
by: Chris Paul | last post by:
I'm having trouble with PHP & PostgreSQL/OpenLDAP/Apache on Windows. I've set this up countless times on BSD (piece of cake) but I'm trying to do this on Windows now so that my developer can work on her local machine. Everything looks pretty good. OpenLDAP/cygwin works great. PostgreSQL works great. Apache runs. PHP runs. But when I try to connect to my PostgreSQL server using PHPPgAdmin, I
9
2667
by: Andrew | last post by:
Hi, I implemented a simple WMI Provider in C#. It is a service which expose 10 instances of a simple WMI Class. The WMI class pnly expose 4 public properties (Value,Min,Max,StdValue) which only return some constant data. First, I was using MOM 2005 (Windows 2003) to interogate the instances values.
10
1841
by: Sourcerer | last post by:
I wrote this very simple code in .NET VC++. I compiled it on my system, and tried to run it on my friend's computer (he doesn't have the compiler). We both have Windows XP Professional. I have .NET framework 2.0, and he had 1.0 and it didn't work; then he installed 2.0 and it still didn't work; so he tried with 2.1 and it didn't work, then 3.0 and nothing still worked. I have Intel Centrino Mobile (laptop computer), and he has Intel Pentium...
3
7057
by: Sylvie | last post by:
My Windows Application has two forms, one form contains a grid (lets say Stock Listing), and the other is a form of one stock, contains some edit boxes for one stock's fields.. Is it possible to run application remotely and retrieve grid and form data in some way without accessing directly to database server? Web Services is being used for this purpose I think, Which methods must be used for this ?
0
9673
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10443
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10216
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10165
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9044
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5437
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.