Before updating to Windows 10 you may need to return your Pro license. More information here

How do i fix the MonoPosixHelper reference

Im trying to unzip some stuff in an script, but the GZipStream is throwing an exception (im on a mac):

System.DllNotFoundException: MonoPosixHelper
  at (wrapper managed-to-native) System.IO.Compression.DeflateStream:create_z_stream (System.IO.Compression.CompressionMode,bool)
  at System.IO.Compression.DeflateStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen, Boolean gzip) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.Compression.DeflateStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode,bool,bool)
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode, Boolean leaveOpen) [0x00000] 
  at System.IO.Compression.GZipStream..ctor (System.IO.Stream compressedStream, CompressionMode mode) [0x00000] 
  at (wrapper remoting-invoke-with-check) System.IO.Compression.GZipStream:.ctor (System.IO.Stream,System.IO.Compression.CompressionMode)
  at GZIPDecompressor.Decompress (System.Byte[] data) [0x00042] in /Users/peterbjornx/runescape client 3/runescape client/assets/runescape scripts/cache/GZIPDecompressor.cs:20

more ▼

asked Nov 08, 2009 at 01:54 PM

avatar image

11 3 2 5

Could you add the actual calling code that you use when you get this exception, as well as mentioning on which target platforms this would need to run (webplayer, standalone only etc).

Nov 09, 2009 at 08:08 AM Lucas Meijer 1 ♦♦
(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

After LOTS of research and testing (and hair pulling, and begging), my opinion is to use DotNetZip. You need to copy some .dlls out of the mono framework to get it to work with built .exes.

Here is my Q that describes this: http://answers.unity3d.com/questions/10650/whats-the-best-way-to-implement-file-compression

more ▼

answered Oct 19, 2010 at 12:55 AM

avatar image

452 13 16 24

(comments are locked)
10|3000 characters needed characters left

Only if we could use some kind of search engine!

more ▼

answered Jan 27, 2010 at 04:00 AM

avatar image

101 16 11 23

You know, this is the top google search result for "unity monoposixhelper" at the moment. This snarky response isn't doing the unity community any favors.

Aug 25, 2010 at 10:28 PM x4000
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments



asked: Nov 08, 2009 at 01:54 PM

Seen: 3838 times

Last Updated: Nov 20, 2009 at 12:29 PM