[Mono-devel-list] HasShutdownStarted race?

Thomas Harning Jr. harningt at gmail.com
Fri Jun 3 00:29:20 EDT 2005

I don't think any finalizers will be called until references are
dealt with, so a class that has references to A and B will be
finalized and cleared before A and B are freed.

A good way to handle this is the "Dispose" pattern.
If you must have finalizers run, its likely to be for cleaning
resources, which Dispose helps handle deterministically and in the
case where Dispose isn't called, the destructor deals with it but
only handles unmanaged resources (which you have to set it up like
Look up the MS Docs about "Dispose" and how to implement it.

Thomas Harning Jr.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20050603/fce5ec5d/attachment.bin 

More information about the Mono-devel-list mailing list