Re: Dispose then set to nothing

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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/>


.



Relevant Pages

  • Re: Dispose then set to nothing
    ... I see two writers in this thread who mix completely up the finalizing with disposing and have build their own mythe about that. ... 'IDisposable.Dispose' is all about releasing resources. ... When it's not used any more, it's IMO suitable to implement 'IDisposable' and let 'Dispose' erase the array. ...
    (microsoft.public.dotnet.languages.vb)
  • Software Protection system...Any tester there ?
    ... I'm currently finalizing a software protection system, ... I tried to make something robust enough, ... resources to test it. ...
    (alt.lang.asm)
  • Software Protection System...Any Hacker there ? :o))
    ... I'm currently finalizing a software protection system, ... I tried to make something robust enough, ... resources to test it. ...
    (comp.lang.asm.x86)