Re: Destructors are useless?

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Dilip" <rdilipk@xxxxxxxxx> wrote in message
news:1114698069.478784.4670@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Admittedly I don't know why this is documented in
> Environment.HasShutdownStarted but here it is, reproduced verbatim:
>
> "Note: An exception to this rule is the Console class, which contains
> static fields that reference stream objects, but is implemented
> specially so you can always write to the system console, even during
> domain unloading or system shutdown."

Yes, I stumbled across this one too.

> Is this authoritative enough?

Well, for .NET, it is. But it's not authoritative enough for Mono, I suspect.
Guarantees such as this should really be part of the language or library
spec. Anyway, I'll point the Mono people at that passage, thanks!

Cheers,

Michi.
--
Michi Henning Ph: +61 4 1118-2700
ZeroC, Inc. http://www.zeroc.com

.