[Mono-dev] DeflateStream on OSX

Jonathan Pryor jonpryor at vt.edu
Sun Dec 25 10:17:40 EST 2011

On Dec 20, 2011, at 1:06 PM, Jonathan Shore wrote:
> I attempted to use System.IO.Compression.DeflateStream and encountered a DLL load error when DeflateStream attempts to load the MonoPosixHelper DLL.   Searching in 
> 	/Library/Frameworks/Mono.framework/Libraries/mono
> did not find the MonoPosixHelper dll.

That's because it's:


How are you attempting to use DeflateStream? It works for me from `csharp` on OSX:

> $ csharp 
> Mono C# Shell, type "help;" for help
> Enter statements below.
> csharp> using System.IO.Compression;
> csharp> using System.IO;         
> csharp> var s = File.OpenWrite ("foo.z");
> csharp> var c = new DeflateStream (s, CompressionMode.Compress);
> csharp> var o = new StreamWriter (c);
> csharp> o.WriteLine ("Hello, world!");
> csharp> o.Close();
> csharp> var i = new StreamReader (new DeflateStream (File.OpenRead ("foo.z"), CompressionMode.Decompress));
> csharp> i.ReadLine();
> "Hello, world!"

 - Jon

More information about the Mono-devel-list mailing list