Hallo. I started a solution in VS.NET with template for C# windwos
application. The solution has several projects:
-Artifacts
-BusinessRules
-Client
-ErrorLog
-Standardization
....
...
..
When application is stared you can see only one form with 4 userControls
included on it. Each user control contains:
- toolbas user control : 4 combo controls + 2 buttons
- image user control: kodak image edit control + 6 buttons
- data entry user control: 3 listviewz, 10 buttons, 6 edit controls, 1 combo
- view list control: 1 list view control
and few buttons on form
I don't use unmanaged variables in appilcation so I expect GC to do work for
me and take care about destroing the objects.
When I start that exe assembly I got process in memory for this application
~32MB.
Is this memory usage for this kind of application normal!? For me it's looks
like too much memory. When I load image in kodak control process grows to
~45MB.
Where I'm wrong!? I don't think that tis useage of memory is normal even for
..NET app.
When I minimize app process gets unbelivable 600KB of memory useage. What's
going on!?
Would you help me please and tell me how to limit this 45MB to something
smaller and how to use GC when I use only managed variables!? Should I
derive all Artifacts, Businessruless and Standardization classes from
IDisposable and override Dispose method for all classes which I will call
after I finished with some object from that classes?
regards
Vasko