You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling ZlibStream.Finish(); in deflate mode, System.InvalidOperationException is thrown.
This issue is not present in release 1.1.4.0 when using ZOutputStream.
Full stack trace:
System.InvalidOperationException: Operation is not valid due to the current state of the object.
Stack Trace:
at Elskom.Generic.Libs.Deflate.Compress(ZlibStream stream, ZlibFlushStrategy flush) in .\Haru.Compression\zlib.managed\Deflate.cs:line 416
at Elskom.Generic.Libs.ZlibStream.Deflate(ZlibFlushStrategy flush) in .\Haru.Compression\zlib.managed\ZlibStream.cs:line 371
at Elskom.Generic.Libs.ZlibStream.Finish() in .\Haru.Compression\zlib.managed\ZlibStream.cs:line 286
at Haru.Compression.Zlib.Deflate(Byte[] data, ZlibCompression level) in .\Haru.Compression\Zlib.cs:line 17
at Haru.Compression.Tests.ZlibTest.TestDeflate() in .\Haru.Compression.Tests\ZlibTest.cs:line 15
The text was updated successfully, but these errors were encountered:
MerijnHendriks
changed the title
System.InvalidOperationException: Operation is not valid due to the current state of the object.
System.InvalidOperationException in Deflate.Compress
Nov 29, 2023
Describe the bug
When calling
ZlibStream.Finish();
in deflate mode,System.InvalidOperationException
is thrown.This issue is not present in release 1.1.4.0 when using
ZOutputStream
.Full stack trace:
To Reproduce
I made a reproduction repo here.
If you do not wish to use the reproduction repo, you can use this instead:
Expected behavior
ZlibStream
to succeed deflating the data from the code above without issues.Actual behavior
ZlibStream.Finish()
throwsSystem.InvalidOperationException
.Version used
main
d1fa75f
.The text was updated successfully, but these errors were encountered: