{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 32070.  First avail in v1.8.3.11.",
    "ClosedDate": "2009-05-26T13:21:19.717-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "The various streams (ZlibStream, DeflateStream, and GZipStream and/or ZlibBaseStream) should throw an ObjectDisposedException after it has been closed.\n \nAs an alternative patch, simply edit the Close function of the wrapper streams (ZlibStream, DeflateStream, and GZipStream) as follows:\n \npublic override void Close()\n{\ntry {\n_baseStream.Close();\n} finally {\n_baseStream = null;\n}\n}\n \nThe try/finally will invalidate the stream even if an IOException occurs when writing a checksum, or some other error occurs.\n \nWith the above code, an ObjectNullException (?) will occur after the stream is closed, which is better than nothing.\n \nThanks,\nShane",
    "LastUpdatedDate": "2013-05-16T05:32:21.217-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-05-26T12:02:38.2-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Throw ObjectDisposedExceptions after Close is called on streams",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 7816
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "Oops, you'd have to change it to check if _baseStream != null before executing the above code, as follows:\r\n\r\npublic override void Close()\r\n{\r\nif (_baseStream) {\r\ntry {\r\n_baseStream.Close();\r\n} finally {\r\n_baseStream = null;\r\n}\r\n}\r\n}\r\n\r\nThis would of course patch workitem 7815 (Close can't be called twice) as well.",
      "PostedDate": "2009-05-26T12:19:33.083-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-05-26T13:21:19.717-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:17.913-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:21.217-07:00",
      "Id": -2147483648
    }
  ]
}