[Mono-list] [System.IO.Compression] OutOfMemory exception on DeflateStream instantiation

Paolo Molaro lupus at ximian.com
Thu Dec 7 13:33:20 EST 2006

On 12/06/06 Generic 2006 wrote:
> I'm crashing against an annoying issue, regarding the instantiation of
> DeflateStream objects.
> Here it is my simple code:
>   MemoryStream outputStream = new MemoryStream();
>   DeflateStream outputFilter = new DeflateStream(
>     outputStream,
>     CompressionMode.Compress,
>     true
>     ); // OutOfMemory exception is thrown here.
> Someone suggests this is a misleading exception indicating that the zlib
> version on the system is too old (<, but I have verified that
> its version on my system (Debian sarge stable) is OK (1.2.2).

As the bug report explains, you need to compile mono with the
development packages for zlib installed. If you didn't compile mono
yourself, you need to file a bug report with whoever compiled the
packages for you.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-list mailing list