Closed lostmsu closed 7 months ago
@markheath nitpick, but the first parameter to ObjectDisposedException
constructor is objectName
(e.g. nameof(AcmStream)
), not message
, and it should not be localized. Might be useful when figuring out between multiple disposed objects.
Should throw something meaningful like
ObjectDisposedException
.The issue happens because
streamHeader
field gets nulled inDispose
.