Memory issues

  • Thread starter Thread starter Bruno Rodrigues
  • Start date Start date
B

Bruno Rodrigues

Hi,

I'm having several memory leaks in my Windows Form (C#). Testing, I
found a curious thing:

Put a ListView control in a Windows Form, run the project and start the
TaskManager. Each time you focus the form or pass the mouse in/out the
ListView, the memory used by the application increases. And, besides that,
the start memory used is about 12MB. Isn't that a little big? Word uses
about 8MB.

Is this a Garbage Collector problem, or later this resources will be
collected? Or, this is a internal problem of the ListView control?

Thanks.
Bruno Rodrigues.
São Paulo SP, Brasil.
 
This is by design. If no other app requires memory, an application reserves
a big portion for itself. When another app asks the system for memory and
there is not enough remaining, windows takes it from other apps which does
not require it at the moment. Also, as you noticed, applications which does
not have the input focus (background applications) will get less memory from
the system.
 
Back
Top