[Mono-list] RE: MemoryStream problem

Elan Feingold efeingold@mn.rr.com
Mon, 24 Feb 2003 19:00:51 -0600


> I assume it is because MemoryStream.Close() resets its internal buffer
> and CryptoStream.FlushFinalBlock() closes the stream.
> 
> I don't know that Close() disposes internal buffer by ECMA spec.
> MS stream apparently holds.

This appears correct. When I comment out the stream close everything
works fine. So either the stream close is wrong or the
MemoryStream.Close shouldn't reset the buffer.

-elan