On Wed, Sep 17, 2008 at 6:25 PM, Simon Robinson <
simon@simo...> wrote:
>
> right up until the app shuts down. However I am a bit nervous - this means
> I'm entirely dependant on Windows to release all these resources when the
> process ends, and although Windows should do that, to be honest I'm not
> 100% sure I trust it to do so, I'd feel more comfortable if my managed
> code contained something to explicitly ensure these resources are
> released. (I trust .NET rather more than I trust the Windows OS :) )
This is misguided. I'd guess that Windows process cleanup is -if
anything- more robust than .NET. The only scenario where this really
matters is, as others have suggested, when you have multiple
AppDomains. Of course, there's something to be said for
"correctness", especially as you don't know how this code might evolve
in the future.
--
Curt Hagenlocher
curt@hage...
===================================
This list is hosted by DevelopMentorĀ®
http://www.develop.com
View archives and manage your subscription(s) at
http://discuss.develop.com
opensubscriber is not affiliated with the authors of this message nor responsible for its content.