[
  {
    "Id": "648916",
    "ThreadId": "266902",
    "Html": "<p>Hi,</p>\n<p>I'm using the build 1.9.1.5 and ZipFile throws OutOfMemoryException when I try to zip a folder containing 1013MB of files. (there is no inner zip file)</p>\n<p>This is the callstack:</p>\n<p>Exception=System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.<br /> &nbsp;&nbsp; at System.IO.Compression.FastEncoderWindow..ctor()<br /> &nbsp;&nbsp; at System.IO.Compression.FastEncoder..ctor(Boolean doGZip)<br /> &nbsp;&nbsp; at System.IO.Compression.Deflater..ctor(Boolean doGZip)<br /> &nbsp;&nbsp; at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen, Boolean usingGZip)<br /> &nbsp;&nbsp; at System.IO.Compression.DeflateStream..ctor(Stream stream, CompressionMode mode, Boolean leaveOpen)<br /> &nbsp;&nbsp; at ionic.utils.zip.ZipEntry.get_CompressedStream()<br /> &nbsp;&nbsp; at ionic.utils.zip.ZipEntry.WriteHeader(Stream s, Byte[] bytes)<br /> &nbsp;&nbsp; at ionic.utils.zip.ZipEntry.Write(Stream s)<br /> &nbsp;&nbsp; at ionic.utils.zip.ZipFile.Save()</p>\n<p>I'm running under Windows Server 2003, 32 bits. With 2BG of ram.</p>\n<p>This is the code I use:</p>\n<p>&nbsp;using (ZipFile zip = new ZipFile(zipFullFileName))<br /> &nbsp;{<br /> &nbsp;&nbsp;&nbsp; zip.AddDirectory(folder, true); // recurses subdirectories<br /> &nbsp;&nbsp;&nbsp; zip.Save();<br /> &nbsp;}</p>\n<p>zipFullFileName refert to the Temp directory of Windows: C:\\Windows\\Temp\\MyZipFile.zip</p>\n<p>folder contains 1GB of files. folder is also in the Temp directory of Windows.</p>\n<p>I can't see where I can change the compressionLevel as seen in other post.</p>\n<p>Does 1GB is supported?</p>\n<p>Is it a known issue?</p>\n<p>&nbsp;</p>\n<p>Pierre-Luc</p>",
    "PostedDate": "2011-07-28T05:52:27.433-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "649071",
    "ThreadId": "266902",
    "Html": "<p>Copied to Issue tracker.</p>",
    "PostedDate": "2011-07-28T10:14:42.807-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "649356",
    "ThreadId": "266902",
    "Html": "<p>You are not using DotNetZip v1.9.1.5.&nbsp; The callstack you showed is impossible to achieve with v1.9.1.5.</p>\r\n<p>This is also why you cannot find the way to change the compression level.</p>\r\n<p>I think you are actually using v1.5 or v1.6.&nbsp; &nbsp;</p>\r\n<p>Please try your code again with v1.9.1.5, and I'm sure you'll find success.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-07-28T22:13:56.447-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]