[
  {
    "Id": "495459",
    "ThreadId": "227741",
    "Html": "<p>So after numerous tweaks to my own code for a simple backup program (find files, find most recent, zip the most recent), I figured that using a split zip would work best for me. &nbsp;However, I can only get one save out of the split. &nbsp;Every time after the first save, it'll start saving and when it tries to overwrite the first split file, it throws an IOException stating that it can't access that file because it's being used by another process. &nbsp;I've made sure that my program is the only process using that file. &nbsp;I suspect it's something to do with DotNetZip reading the file, thereby &quot;using&quot; it. &nbsp;Is there something I can do to get around this, or is this something that maybe slipped by during development?</p>\r\n<p>&nbsp;</p>\r\n<p>I'll post the code in a response to this, as when I try to post it in the initial post, it tends to get formatted badly. :\\</p>",
    "PostedDate": "2010-09-18T11:48:49.473-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "495463",
    "ThreadId": "227741",
    "Html": "<p>&nbsp;</p>\r\n<p>+<span> </span>error<span> </span>{&quot;The process cannot access the file 'E:\\\\UserBackup\\\\UserBackup.z01' because it is being used by another process.&quot;}<span> </span>System.IO.IOException</p>\r\n<p>+<span> </span>Data<span> </span>{System.Collections.ListDictionaryInternal}<span> </span>System.Collections.IDictionary {System.Collections.ListDictionaryInternal}</p>\r\n<p>HelpLink<span> </span>null<span> </span>string+</p>\r\n<p>InnerException<span> </span>null<span> </span>System.Exception</p>\r\n<p>Message<span> </span>&quot;The process cannot access the file 'E:\\\\UserBackup\\\\UserBackup.z01' because it is being used by another process.&quot;<span> </span>string</p>\r\n<p>Source<span> </span>&quot;mscorlib&quot;<span> </span>string</p>\r\n<p>StackTrace<span> </span>&quot; &nbsp; at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at System.IO.File.Delete(String path)\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipSegmentedStream._SetWriteStream(UInt32 increment) in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipSegmentedStream.cs:line 247\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipSegmentedStream.Write(Byte[] buffer, Int32 offset, Int32 count) in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipSegmentedStream.cs:line 296\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipEntry.CopyThroughWithNoChange(Stream outstream) in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipEntry.Write.cs:line 2284\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipEntry.CopyThroughOneEntry(Stream outstream) in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipEntry.Write.cs:line 2119\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipEntry.Write(Stream s) in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipEntry.Write.cs:line 1823\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at Ionic.Zip.ZipFile.Save() in C:\\\\DotNetZip\\\\v1.9.1.5\\\\DotNetZip\\\\Zip Partial DLL\\\\ZipFile.Save.cs:line 124\\r\\n</p>\r\n<p><span style=\"white-space:pre\"> </span>at FileSafe.Form1.BackUp() in C:\\\\Users\\\\Cid the Coatrack\\\\Documents\\\\Visual Studio 2005\\\\Projects\\\\FileSafe\\\\FileSafe\\\\Form1.cs:line 419&quot;<span> </span>string+</p>\r\n<p>TargetSite<span> </span>{Void WinIOError(Int32, System.String)}<span> </span>System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2010-09-18T11:53:32.343-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "552286",
    "ThreadId": "227741",
    "Html": "\r\n<p>bump, anyone? &nbsp;The project has pretty much stalled because I can't solve this problem. :(</p>\r\n",
    "PostedDate": "2011-01-19T17:57:13.393-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1111558",
    "ThreadId": "227741",
    "Html": "I still have the same error.\r<br />\n<br />\nThe problem seems to be related to an antivirus installed on the machine.\r<br />\n<br />\nDotNetZip seems to close the stream after creating the .zxx file, leaving the opportunity to the antivirus to lock it, before DotNetZip tries to re open the stream.\r<br />\n<br />\nDoes anyone have a patch for this problem?<br />\n",
    "PostedDate": "2013-10-24T05:37:12.877-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]