{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "this is fixed in changeset 79174.  The first binary to get this fix is v1.9.1.6.  ",
    "ClosedDate": "2011-06-15T12:04:44.35-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "an issue when extracting spanned archives created with DotNetZip. My code is written in PowerShell.\n \nCode to create the spanned archive:\n \n$zipfile = new-object Ionic.Zip.ZipFile\n$zipfile.UseZip64WhenSaving = [Ionic.Zip.Zip64Option]::AsNecessary\n$zipfile.AddDirectory($inputDir.fullname)\n$zipfile.MaxOutputSegmentSize = $archiveSegmentSize # 40MB\n$zipfile.Save($archiveFile.Fullname)\n \n \n \nCode to extract the spanned archive:\n \n \n$zip = [Ionic.Zip.ZipFile]::Read($Zipfile.Fullname)\n$zip.ExtractExistingFile = [Ionic.Zip.ExtractExistingFileAction]::OverwriteSilently\n$zip.ExtractAll($OutputDirectory.FullName)\n$zip.Dispose()\n \n \nThis will create and then extract a spanned archive with say about 5 segments. What I've noticed is that after the spanned archive is extracted, file handles to the archive segments are not closed for most of the segments after calling the Dispose() method. This means the\n segment files cannot be deleted because they are still in use.\n \nThis also seems to be the case when extracting a spanned archive with the DotNetZip-WinFormsTool program.\n \nWhen I tried the same code to extract a non-spanned ZIP created with DotNetZip, the file handle was closed and I could delete the ZIP file after.",
    "LastUpdatedDate": "2013-05-16T05:31:39.907-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-12-21T07:13:25.413-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "File handles persist after calling Dispose() when extracting spanned ZIP",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 12727
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Just would like to add the comment that posted in the discussion section:\r\n\r\nIt looks like the file handles get cleaned up after a bit of time which suggests the garbage collector is doing it. So I've added this to my PowerShell code and it seems to resolve the issue for now:\r\n\r\n[GC]::Collect()\r\n",
      "PostedDate": "2010-12-21T13:47:05.537-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-13T21:43:44.947-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-15T12:04:44.35-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:19.777-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:39.907-07:00",
      "Id": -2147483648
    }
  ]
}