[
  {
    "Id": "672837",
    "ThreadId": "272862",
    "Html": "<p>Hi all,</p>\n<p>I'm using the lastest version of the library with the next code:</p>\n<p>&nbsp;</p>\n<p>using (ZipFile comprimido = new ZipFile())<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comprimido.Comment = \"Compresion generada por el servicio \" + fechaActual.ToString(\"yyyy-MM-dd HH:mm\");<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comprimido.AddDirectory(registro.Path);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comprimido.MaxOutputSegmentSize = 1024 * 1024 * 50;<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (!registro.SobreEscribir &amp;&amp; System.IO.File.Exists(archivo))<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.IO.File.Delete(archivo);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comprimido.Save(archivo);<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</p>\n<p>&nbsp;</p>\n<p>where \"registro\" is a datarow from typed data source, \"archivo\" is a filename of the zip file, and \"fechaActual\" is an instance from DateTime.Now, when i use this code with directories with a lot of sub folders and files (small, midle and big sized files),  it runs until the process stop(or get into wait state). i tried to verify the problem in the souce code of Ionic.Zip dll, and&nbsp; when the zip process get blocked (always get blocked in the same file), i press pause in my depurator and the current line that shows  me is <span style=\"text-decoration: underline;\">_newlyCompressedBlob.WaitOne(); </span> at Line 930, at file ParallelDeflateOutputStream.cs, it doesn&acute;t happen when I use step by step debbugging, in this case the process finish the zip file without errors.</p>\n<p>When i tried solve the problem, i deleted the file where the processes stuck, but the process get blocked in another file,</p>\n<p>&nbsp;</p>\n<p>Anybody has any idea of my problem</p>",
    "PostedDate": "2011-09-16T10:36:37.427-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "672883",
    "ThreadId": "272862",
    "Html": "<p>It sounds to me that it is failing in the parallel compression. You can use ParallelDeflateThreshold = -1, to disable parallel deflation, to avoid th eproblem.&nbsp; In the meantime it sounds like a bug in the compressor, which I will need to fix.</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-09-16T12:21:24.093-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "672884",
    "ThreadId": "272862",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/workitem/14252\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2011-09-16T12:21:51.707-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]