Memory issues

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

cody

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.
 

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

Similar Threads

Huge Memory Usage 2
Memory Management 8
Memory Leak 2
Huge memory usage problem... 4
Memory used in unmanaged space 1
Managing Virtual memory 1
What good is this automatic garbage collector? 28
Debugging 4

Top