[
  {
    "Id": "701682",
    "ThreadId": "280370",
    "Html": "\r\n<p>Hi,<br>\r\nI'm encountering a problem with DotNetZip version 1.9.1.8 library trying to zip a big number of files, resulting in a zip file 8 gigabyte large, running on a Windows 2003 server with 2 processor and 4 gigabyte of ram.<br>\r\nThe out of memory exception occurs near the end of the process, when memory occupation progressively reachs 1,7 gigabyte of ram.<br>\r\nWith an old version of DotNetZip the process was a lot slower but successfull. &nbsp;Any advice?</p>\r\n<p>Here is the code (I tried any combination of options A, B and C):</p>\r\n<p>Ionic.Zip.ZipFile zipFile = new Ionic.Zip.ZipFile();<br>\r\nif ((tbCompressedTargetPassword.Text != null) &amp;&amp; (tbCompressedTargetPassword.Text != &quot;&quot;))<br>\r\n{<br>\r\n<span style=\"white-space:pre\"></span>zipFile.Password = tbCompressedTargetPassword.Text;<br>\r\n}<br>\r\nzipFile.ParallelDeflateThreshold = -1; &nbsp;// OPTION A<br>\r\nzipFile.CodecBufferSize = 32736;&nbsp;&nbsp;// OPTION B<br>\r\nzipFile.MaxOutputSegmentSize = 1024 * 1024 * 1024; &nbsp;&nbsp;// OPTION C<br>\r\nzipFile.UseZip64WhenSaving = Ionic.Zip.Zip64Option.Always;<br>\r\nzipFile.ZipErrorAction = Ionic.Zip.ZipErrorAction.Skip;<br>\r\nzipFile.AddProgress &#43;= AddProgress;<br>\r\nzipFile.SaveProgress &#43;= SaveProgress;<br>\r\nzipFile.AddDirectory(sSourceFolder);<br>\r\nzipFile.Save(sCompressedTargetFolderFullName);</p>\r\n<p>Thank you in advance for you help!</p>\r\n<p>Fabio Proni</p>\r\n",
    "PostedDate": "2011-11-22T02:21:39.14-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]