Why are simple windows form take so much memory

  • Thread starter Shrage H. Smilowitz
  • Start date
S

Shrage H. Smilowitz

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
 
K

Ken Tucker [MVP]

Hi,

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

Ken
-------------------
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
 
C

Cor Ligthert

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
 
J

jaytm

Cor said:
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
 
C

Chris Dunaway

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.
 
H

Herfried K. Wagner [MVP]

Chris,

Chris Dunaway said:
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 -- 'SetProcessWorkingSetSizeEx'
<URL:http://msdn.microsoft.com/library/en-us/dllproc/base/setprocessworkingsetsizeex.asp>
 
C

Chris Dunaway

The author did indeed have the definitions backwards. I e-mailed him
about it and he put up a correction immediately.
 
H

Herfried K. Wagner [MVP]

Chris,

Chris Dunaway said:
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
:).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top