This repository was archived by the owner on Nov 19, 2020. It is now read-only.

Description
When I call method
Accord.IO.Serializer.Save<T>(this T obj, Stream stream, SerializerCompression compression = DEFAULT_COMPRESSION)
with compression = SerializerCompression.GZip, the stream object closes. And when I try to read serialized content from that stream, I get the exception:
System.ObjectDisposedException : Cannot access a closed Stream.
at System.IO.__Error.StreamIsClosed()
at System.IO.MemoryStream.set_Position(Int64 value)
at Accord.Tests.SerializerTest.compression_test_stream() in C:\Users\art\projects\github\accord.net\Unit Tests\Accord.Tests.Core\SerializerTest.cs:line 166