[
  {
    "Id": "526306",
    "ThreadId": "235838",
    "Html": "\r\n<p><span style=\"font-size:10pt\">Hey all, I am using an applicatrion that has ionic.zip imported into it.<br>\r\n&nbsp;I am getting errors in the application, to do with the zip utility running out of memory. does anyone know if there is any config data in which could change the virtual memory, and do you know how effective the zipping is? or does it depend on the file?<br>\r\n&nbsp;<br>\r\nAny help would be greatly appreciated.<br>\r\n&nbsp;<br>\r\nBen&nbsp;<br>\r\n<br>\r\n</span></p>\r\n",
    "PostedDate": "2010-11-24T01:43:40.9-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "526532",
    "ThreadId": "235838",
    "Html": "\r\n<p>Yes, try the <a href=\"http://cheeso.members.winisp.net/DotNetZipHelp/html/dd2291bf-1c5a-8f1b-cfa6-34239e73ad13.htm\">\r\nZipFile.ParallelDeflateThreshold</a> property. The most common cause of memory problems in DotNetZip is that DNZ creates too many threads when doing parallel deflation.&nbsp; This feature was added to speed up zipping of large files, but it uses a somewhat\r\n naive heuristic for creating threads.&nbsp; It creates a number of threads proportional to the number of CPUs you have on your machine.&nbsp; Each thread consumes some non-trivial amount of memory for buffers (64k).&nbsp; If you have multiple processes, as\r\n with an application running on a server,&nbsp;you can get the same effect multipled by the number of concurrent processes.</p>\r\n<p>one way to test this is to set the ParallelDeflateThreshold to -1, which says, never use parallel deflation, and thus, never consume this extra memory.</p>\r\n<p>If this does not correct the memory problem, then get back to me; I don't know what else it could be but we can try to figure it out.</p>\r\n<p>As to your other question, yes, the effectiveness of the compression depends on the data you are compressing.&nbsp;</p>\r\n<p>Good luck!</p>\r\n<p>&nbsp;</p>\r\n",
    "PostedDate": "2010-11-24T09:29:53.333-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "526897",
    "ThreadId": "235838",
    "Html": "\r\n<p>Thanks for the reply, I will try it and let you know if it helps.</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks again!!!</p>\r\n",
    "PostedDate": "2010-11-25T03:31:09.767-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "526940",
    "ThreadId": "235838",
    "Html": "\r\n<p>Any idea how I change this? I have treid and am outputting the value and it consistently says value = 0.&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>I have tried&nbsp;ParallelDeflateThreshold = -1 and&nbsp;ParallelDeflateThreshold.Set(-1) after removing the declaration which didnt work either.</p>\r\n<p>&nbsp;</p>\r\n<p>Any ideas???</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks Ben</p>\r\n",
    "PostedDate": "2010-11-25T05:47:15.597-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "526948",
    "ThreadId": "235838",
    "Html": "\r\n<p>&nbsp;</p>\r\n<p>Dim mName As Integer<br>\r\n&nbsp;&nbsp; &nbsp;Public Property ParallelDeflateThreshold() As Integer '(should this be zipFile?)</p>\r\n<p>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Get&nbsp;&nbsp; &nbsp;</p>\r\n<p>&nbsp; &nbsp; &nbsp; &nbsp;Return mName&nbsp;&nbsp;</p>\r\n<p>&nbsp; &nbsp; &nbsp;End Get&nbsp;&nbsp; &nbsp; &nbsp;</p>\r\n<p>&nbsp;Set(ByVal value As Integer) &nbsp; &nbsp;'or zipFile?</p>\r\n<p>&nbsp; &nbsp; &nbsp; &nbsp;mName = value&nbsp;&nbsp; &nbsp;</p>\r\n<p>&nbsp; &nbsp;End Set&nbsp;</p>\r\n<p>&nbsp; &nbsp;End Property</p>\r\n<p>&nbsp;</p>\r\n<p>&nbsp;</p>\r\n<p>Is it something along these lines?</p>\r\n",
    "PostedDate": "2010-11-25T06:11:36.503-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "526959",
    "ThreadId": "235838",
    "Html": "\r\n<p>Is it as simple as this?</p>\r\n<p>Dim zip As New ZipFile<br>\r\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;zip.ParallelDeflateThreshold = -1</p>\r\n",
    "PostedDate": "2010-11-25T06:44:33.457-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "527034",
    "ThreadId": "235838",
    "Html": "\r\n<p>yes, it's as simple as that.&nbsp;</p>\r\n",
    "PostedDate": "2010-11-25T09:49:52.057-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]