[Mono-list] Finalizer never called

Gonzalo Paniagua Javier gonzalo@ximian.com
01 Aug 2003 11:18:30 +0200


El vie, 01-08-2003 a las 07:01, Giuseppe Greco escribió:
> Hi all,
> 
> I've still the problem that the destructor (or finalizer) is
> never called... and this cause my applications to crash when
> exiting.

Finalizers are not guaranteed to be called and if they are called, it
may not be inmediately.

> 
> I'm using the very last version of Mono/mcs and I'm running
> a RedHat 9 box...
> 
> Since I implement the IDisposable interface, the only way to
> get my apps exit gracefully, is to call Dispose() explicitly...
> 
> Please, try the attached program more than once (yes, because
> it may complete successfully the first time you execute it),
> and let me know if you have the same problem...

Can you file a bug report attaching the source code?

Thanks.

-Gonzalo