XZOutputStream throws an exception when its preset set to 8 or 9.
For detail, this exception is raised from XZOutputStream.cs line 83.
System.InsufficientMemoryException: 'Memory allocation failed'
It only happens if XZ.NET is using 32bit version of liblzma.dll, and it happens regardless of liblzma.dll's version (5.2.1 and 5.2.3 tested).
To reproduce, please use the test code from pull request #8 .
Tested Environment
- Windows 10 x64 v1709
- .Net Framework 4.7.1 installed
- XZ.NET 2.0 trageting .Net Framework 4 Client Profile