[
  {
    "Id": "1243443",
    "ThreadId": "544804",
    "Html": "I wrote a programm that writes multiple files in a loop using a WriteDelegate like this:\r<br />\n<br />\nZip.AddEntry(zipFilePath, (name, stream) =&gt;\r<br />\n{\r<br />\n<br />\n}\r<br />\n<br />\nZip.Save();\r<br />\n<br />\nInside the delegate I'am writing data using an XmlTextWriter to the file. On my local computer this works perfectly but on some remote virtual computers exceptions are thrown on Zip.Save():\r<br />\n<br />\nSystem.IO.IOException the process cannot access the file because it is being used by another process\r<br />\n<br />\nWhy is the zip file still locked after Save() is called? How can I solve this problem? If I just catch the exception and save the file again it seams like the thread is taking the loop variables from the next file. (I've already set an exception in the virus scanner for my application)<br />\n",
    "PostedDate": "2014-05-09T04:11:34.14-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1249702",
    "ThreadId": "544804",
    "Html": "I solved the problem, now I simply use the ZipOutputStream to add the files in a loop. Using this class I had no more problems and it is even faster!<br />\n",
    "PostedDate": "2014-05-26T08:45:04.98-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]