[
  {
    "Id": "207009",
    "ThreadId": "61057",
    "Html": "<p>Hey there!</p>\r\n<p>In the newest version 1.8 of your (really brilliant) Zip-Library, I got a crash when I call one of the following methods on a ZipFile which was created in memory:</p>\r\n<p>var zip = <span style=\"color:Blue\">new</span> ZipFile();<br>zip.AddDirectory(<span style=\"color:#A31515\">@&quot;E:\\myFolder&quot;</span>); <br>var stream = zip.Entries[0].OpenReader();   &nbsp;// you could also call zip.Entries[0].Extract(...)</p>\r\n<p><span style=\"text-decoration:underline\">Exception Stacktrace</span></p>\r\n<p>bei Ionic.Zip.ZipEntry.SetFdpLoh()\\r\\n   bei Ionic.Zip.ZipEntry.get_FileDataPosition()<br>bei Ionic.Zip.ZipEntry.InternalOpenReader(String password)<br>bei Ionic.Zip.ZipEntry.OpenReader()</p>\r\n<p>If I save the ZipFile to a file, it works. If I save it to a stream (MemoryStream), it crashes too.</p>\r\n<p>Is this by design or is there a problem?</p>\r\n<p>Thanks for your help!</p>\r\n<p>Cheers,<br>Florian</p>",
    "PostedDate": "2009-06-30T03:58:59.787-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "207053",
    "ThreadId": "61057",
    "Html": "<p>Hello Forian,</p>\r\n<p>I think it is both:&nbsp; it is by design that what you tried does not work, and there is a problem in DotNetZip in that it does not return a proper exception.</p>\r\n<p>It looks&nbsp;like you haven't actually called Save between the call to AddDirectory() and the call to OpenReader() or Extract() - is that correct?</p>\r\n<p>The library is not designed to handle that, so I would expect an error.&nbsp; On the other hand, it should not throw a random exception.&nbsp; It should throw something with a message like &quot;You must call ZipFile.Save before attempting to extract an entry.&quot;</p>",
    "PostedDate": "2009-06-30T06:35:09.19-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "207054",
    "ThreadId": "61057",
    "Html": "This discussion has been copied to a work item. Click <a href=\"http://dotnetzip.codeplex.com/WorkItem/View.aspx?WorkItemId=7958\">here</a> to go to the work item and continue the discussion.",
    "PostedDate": "2009-06-30T06:36:31.42-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "207507",
    "ThreadId": "61057",
    "Html": "<p>Yes that's right, I haven't called Save. Thank you for your reply!</p>",
    "PostedDate": "2009-07-01T05:46:24.727-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]