[Mono-list] Finalizer never called
Gonzalo Paniagua Javier
gonzalo@ximian.com
01 Aug 2003 11:47:14 +0200
El vie, 01-08-2003 a las 11:31, Giuseppe Greco escribió:
> > Finalizers are not guaranteed to be called and if they are called, it
> > may not be inmediately.
>
> That would be OK... If one need the finalizer to be called immediately,
> he has just to call the Dispose() method (actually, that's my
> workaround).
Using the IDisposable pattern is not a workaround. It's the recommended
approach when you want to release unmanaged resources in a deterministic
way.
-Gonzalo