Re: Dispose then set to nothing
- From: "Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx>
- Date: Wed, 28 Feb 2007 18:43:12 +0100
Herfried,
Did I talk somewhere about resources. That effect I know, for the rest I see
two writers in this thread who mix completely up the finalizing with
disposing and have build their own mythe about that.
They think that using low memory has advantages. Probably they use a
computer with more than 2Gb computer while I am doing fine with my 512Kb
without all those things they are telling.
One of the advantage of Net is the automatic finalizing system at times that
the computer is Iddle.
But some are probably affected it so much that they need computers with more
memory to get some performance.
You know the article Jay wrote about all the discussions here, for sure is
there a big part from my ideas in that article.
Cor
"Herfried K. Wagner [MVP]" <hirf-spam-me-here@xxxxxx> schreef in bericht
news:en85GC1WHHA.1636@xxxxxxxxxxxxxxxxxxxxxxx
Cor,
"Cor Ligthert [MVP]" <notmyfirstname@xxxxxxxxx> schrieb:
What advantage is there on a common computer to call dispose immediately
or set things to nothing which will all be done if it is needed in the
proper time by Net.
Imagine an unmanaged resource pool containing only a limited number of
resources of a certain type, such as connections, GDI handles, file
handles, ... By omitting the call to 'Dispose' the application may run
out of these unmanaged resources because they are still locked but not
used any more.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
.
- Follow-Ups:
- Re: Dispose then set to nothing
- From: Herfried K. Wagner [MVP]
- Re: Dispose then set to nothing
- References:
- Re: Dispose then set to nothing
- From: Brian Gideon
- Re: Dispose then set to nothing
- From: Cor Ligthert [MVP]
- Re: Dispose then set to nothing
- From: Jay B. Harlow [MVP - Outlook]
- Re: Dispose then set to nothing
- From: Cor Ligthert [MVP]
- Re: Dispose then set to nothing
- From: Herfried K. Wagner [MVP]
- Re: Dispose then set to nothing
- Prev by Date: Re: resourses release problem
- Next by Date: Creating and writing to a TIF file, how?
- Previous by thread: Re: Dispose then set to nothing
- Next by thread: Re: Dispose then set to nothing
- Index(es):
Relevant Pages
|