all groups > dotnet windows forms > may 2004 >
You're in the

dotnet windows forms

group:

Memory issues


Memory issues Bruno Rodrigues
5/31/2004 4:36:50 PM
dotnet windows forms: 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.

Re: Memory issues hirf-spam-me-here NO[at]SPAM gmx.at
5/31/2004 9:44:32 PM
* "Bruno Rodrigues" <bruno.iatec@siplan.com.br> scripsit:
[quoted text, click to view]

That's normal for .NET apps.

[quoted text, click to view]

Mhm... Who knows. Does the number of handles increase too (there is an
option in task manager to show the # of GDI handles)? If yes, this may
be caused by a memory leak.

--
Herfried K. Wagner [MVP]
Re: Memory issues cody
5/31/2004 9:51:06 PM
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.

--
cody

[Freeware, Games and Humor]
www.deutronium.de.vu || www.deutronium.tk
"Bruno Rodrigues" <bruno.iatec@siplan.com.br> schrieb im Newsbeitrag
news:euPV7U0REHA.3348@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button