[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] What will happen if Dispose() hangs?
From:       Robert Jordan <robertj () gmx ! net>
Date:       2015-01-27 19:08:37
Message-ID: ma8nnj$r3f$1 () ger ! gmane ! org
[Download RAW message or body]

On 27.01.2015 18:56, Edward Ned Harvey (mono) wrote:
> > From: mono-devel-list-bounces@lists.ximian.com [mailto:mono-devel-list-
> > bounces@lists.ximian.com] On Behalf Of Robert Jordan
> > 
> > You may want to look up how a sane IDisposable pattern has to be
> > sensibly implemented in .NET. You'll find out that Dispose()
> > shouldn't be called from a finalizer.
> 
> Uhmm...  You got that wrong.  Here is the recommended pattern:
> https://msdn.microsoft.com/en-us/library/b1yfkh5e(v=vs.110).aspx
> 
> Basically, *always* call Dispose(false) from the finalizer, if present, but avoid \
> having a finalizer unless you need one.

That's Dispose(bool). I was speaking about Dispose().


_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic