[Mono-dev] GC.Collect() CLR<>Mono difference.

Sunny sloncho at gmail.com
Thu Jan 8 12:50:13 EST 2009

On Thu, Jan 8, 2009 at 11:45 AM, Sunny <sloncho at gmail.com> wrote:
> According to this:
> <http://msdn.microsoft.com/en-us/library/system.weakreference(VS.80).aspx>
> IsAlive becomes false after the finalizer is done. It may be so, that
> under mono your call to IsAlive is made before the finalizer is
> called. Try with GC.WaitForPendingFinalizers() before the check.

Hmmm, I just tried it under mono, it still outputs True. Looks like a bug.

Svetoslav Milenov (Sunny)

Even the most advanced equipment in the hands of the ignorant is just
a pile of scrap.

More information about the Mono-devel-list mailing list