Re: GC and dispose
- From: "Petros Amiridis" <petros@xxxxxxxxxxx>
- Date: Wed, 21 Jun 2006 06:22:23 -0700
Daniel Billingsley wrote:
As somebody else said, the Dispose pattern is for making sure
UNMANAGED resources inside your classes get cleaned up.
This more clear to me now. I really thought Dispose would help GC.
Thank you and the rest for the clarification.
I have no idea what "several times more memory than equivalent native
applications" means. Equivalent how -Functionality? Code? That's
such a nebulous comparison I don't think I'd spend much time worrying
about that either.
I admit that is based entirely on my experience and not in crystal
clear measurements. My heuristics mechanism takes under consideration
all the factors: Functionality, Number of Forms etc. Sure, I might be
inaccurate in my comparison, but the numbers are very different between
native and managed applications. My native applications take memory and
give it back as soon as I don't need the resources I've used. In
managed applications, the memory keeps being eaten until the GC decides
it is time to collect. The problem with this is that my customer does
run more applications than one. The customer also uses his computer for
other puproses, so she runs third party applications too. So to
conclude, I don't have a specific problem, other than the need to tell
my customers to add some more memory to their machines. Maybe it is not
a leak, it is just taking the GC a long time to collect back the memory.
--
Petros
.
- Follow-Ups:
- Re: GC and dispose
- From: Simon Hart
- Re: GC and dispose
- References:
- GC and dispose
- From: Petros Amiridis
- Re: GC and dispose
- From: Phil Wilson
- Re: GC and dispose
- From: Petros Amiridis
- Re: GC and dispose
- From: Daniel Billingsley
- GC and dispose
- Prev by Date: Re: Font representation
- Next by Date: Re: GC and dispose
- Previous by thread: Re: GC and dispose
- Next by thread: Re: GC and dispose
- Index(es):
Relevant Pages
|
Loading