{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "fixed in changeset 79356.  Sorry for the delay, everyone.  I know you&#39;ve been waiting a while.  The first binary to contain this fix will be v1.9.1.6. ",
    "ClosedDate": "2011-06-17T20:28:30.147-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "I'm running into an issue when taking a large file and splitting it.\n \nWhen the file gets close to 1gb or over (I've tested on a 980mb file and a 2.5gb file), splitting the zip file doesn't seem to work. I get an exception as follows:\n \n{\"Could not find file 'C:\\\\ziptest\\\\zipped\\\\SQL Server Developer 2005.z01'.\":\"C:\\\\ziptest\\\\zipped\\\\SQL Server Developer 2005.z01\"}\n \n at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\n at System.IO.File.Move(String sourceFileName, String destFileName)\n at Ionic.Zip.ZipSegmentedStream.TruncateBackward(UInt32 diskNumber, Int64 offset)\n at Ionic.Zip.ZipEntry.Write(Stream s)\n at Ionic.Zip.ZipFile.Save()\n at Ionic.Zip.ZipFile.Save(String fileName)\n at DBBackupUploader.Program.ProcessBackupDir(String strDBBackupDir, String strZipDir, String strProcessedDir) in C:\\\\Users\\\\bholt\\\\Documents\\\\Visual Studio 2005\\\\Projects\\\\DBBackupUploader\\\\DBBackupUploader\\\\Program.cs:line 188\n \n \n \nIf I watch it when its going, the file is created in the directory (along with a tmp file). It churns away for a bit and then produces that error message. The files also disappear from the directory.\n \nIf I remove the MaxOutputSegmentSize line, it works just fine on all the large files. Splitting works fine for me on small files.\n \nChanging the MaxOutputSegmentSize value seems to make no difference. So it seems to me like it is a combo of large files and splitting.\n \n \n \nCode:\n \nzip.AddFile(strFilePath);zip.Comment = \"This zip was created at \" + System.DateTime.Now.ToString(\"G\");zip.MaxOutputSegmentSize = 500000 * 1024;     string strOutputFileName = fiFileToProcess.Name.Substring(0, fiFileToProcess.Name.Length - 3);zip.Save(strZipDir + \"\\\\\" + strOutputFileName + \"zip\");\n \nAny ideas?",
    "LastUpdatedDate": "2013-05-16T05:31:54.7-07:00",
    "PlannedForRelease": "v1.9.1.8 DotNetZip - Latest Stable",
    "ReleaseVisibleToPublic": true,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-02-02T14:14:26.52-08:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "Splitting Large (~1gb+) files leads to an exception",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 7,
    "Id": 10143
  },
  "FileAttachments": [
    {
      "FileId": 2709,
      "FileName": "TestFileZip.zip",
      "DownloadUrl": ".\\2709"
    }
  ],
  "Comments": [
    {
      "Message": "Stack Trace:\r\n\"   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\\r\\n   at System.IO.File.Move(String sourceFileName, String destFileName)\\r\\n   at Ionic.Zip.ZipSegmentedStream.TruncateBackward(UInt32 diskNumber, Int64 offset)\\r\\n   at Ionic.Zip.ZipEntry.Write(Stream s)\\r\\n   at Ionic.Zip.ZipFile.Save()\\r\\n   at Ionic.Zip.ZipFile.Save(String fileName)\\r\\n   at DBBackupUploader.Program.ProcessBackupDir(String strDBBackupDir, String strZipDir, String strProcessedDir) in C:\\\\Users\\\\bholt\\\\Documents\\\\Visual Studio 2005\\\\Projects\\\\DBBackupUploader\\\\DBBackupUploader\\\\Program.cs:line 188\"\tstring\r\n\r\nCan you replicate?\r\n",
      "PostedDate": "2010-02-03T06:29:21.027-08:00",
      "Id": -2147483648
    },
    {
      "Message": "using version : 1.9.1.2",
      "PostedDate": "2010-02-03T06:34:05.457-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I'll look into it.",
      "PostedDate": "2010-02-03T13:32:40.36-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-02-04T10:33:19.083-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-02-11T21:43:22.75-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Just curious if you've had a opportunity to look into this and if you can replicate. Let me know if you need anything.",
      "PostedDate": "2010-02-12T06:18:05.187-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Protoman  - I took a few days off - our power and internet was off for several days after a snowstorm.  Catching up now.  I'm running tests, but have not been able to replicate this problem yet.  On my machine it takes a while to generate a zip of that size - an hour or more.  Then if I don't get the problem, I tweak the test a little, and run the test again.  As you can see, each iteration takes quite a while.  I will let you know, on this workitem, if I need anything. ",
      "PostedDate": "2010-02-12T13:54:06.373-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I haven't been able to reproduce the problem.  Is there anything more about your environment you can tell me?  Is it possible that you ran out of disk space? How many files are you zipping?  When you say \"the file gets oer 1gb\" - which file is that?  The agrgegate size of the zip file?  Or.... the size of the file you are zipping?  etc etc. ",
      "PostedDate": "2010-02-13T07:18:21.34-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Still cannot reproduce this problem.  Need some guidance.",
      "PostedDate": "2010-02-15T12:06:59.01-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I'm zipping just one file, it's 920,000 KB. Lots of space on my drive, over 680 GB free. \r\n\r\nAny files larger then that fail, a small file (30mb) work fine. Will test some files with sizes in the middle to try and figure out where it starts to fail.\r\n\r\nAlso, it only fails when trying to create a spanned/split archive. The set size of each segment doesn't seem to matter. I've tried it at 500,000 KB and 5,000 KB and it fails just the same on both. One thing that is interesting though, when I set the segment size to 5,000 KB and watch the output directory I can see it creating each segment. It seems to make all the segments ok (when I set it to 5,000 KB it makes ~184 zips), but it fails right after it makes the last one. The zips are then removed automatically it seems.  \r\n\r\nDo you want more of my code?",
      "PostedDate": "2010-02-16T06:29:34.96-08:00",
      "Id": -2147483648
    },
    {
      "Message": "If you had a succint app that reproduces the error reliably, it would be useful.  I tried following your instructions and could not reproduce it. \r\n",
      "PostedDate": "2010-02-16T19:30:42.57-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I made a little app that reproduces the error.\r\n\r\nNeed a directory called C:\\ziptest\r\nwith sub directories : \\processed and \\zipped\r\n\r\nfile to zip goes in \\ziptest\r\n\r\nI've narrowed the file size down : 717mb seems to work while 740mb does not.",
      "PostedDate": "2010-02-17T08:02:38.68-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-02-17T08:02:43.137-08:00",
      "Id": -2147483648
    },
    {
      "Message": "also, checking the events of ZipProgressEventType during the save, it hits the error before getting to \"Saving_AfterWriteEntry\".",
      "PostedDate": "2010-02-17T11:49:37.253-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Can you upload the source code to a standalone app that produces the problem?  When run on a clean system, it would produce the problem you see.  This might include: creating directories and subdirectories, creating files or placing the files into those directories, and zipping up the directory or files. \r\n\r\nI have tried repeatedly to produce this problem.  I know you see the problem. That hasn't helped me reproduce it.  I need something more concrete from you.  I need a repro. \r\n",
      "PostedDate": "2010-02-17T13:35:45.74-08:00",
      "Id": -2147483648
    },
    {
      "Message": "the source code should all be there in that zip file that i posted.",
      "PostedDate": "2010-02-17T13:42:12.42-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-02-25T08:40:26.8-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I'm getting exactly the same behavior as well. Here is the test code I'm using:\r\n            using (ZipFile zip = new ZipFile())\r\n            {\r\n                ZipEntry e1 = zip.AddFile(\"c:\\\\Output\\\\Movie253.avi\");\r\n                zip.MaxOutputSegmentSize = 50 * 1024 * 1024;\r\n                try\r\n                {\r\n                    zip.Save(\"c:\\\\ServerCookies\\\\test.zip\");\r\n                }\r\n                catch (Exception Exception)\r\n                {\r\n                    MessageBox.Show(Exception.Message);\r\n                }\r\n            }\r\n\r\nIn my case it works fine for a 195MB file but fails for a 253MB file. The files are created successfully till it reaches the last one at which point all created files are deleted and I get the following error:\r\n   Could not find file 'c:\\Output\\Movie253.z01'.\r\n\r\nStack Trace:\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.File.Move(String sourceFileName, String destFileName)\r\n   at Ionic.Zip.ZipSegmentedStream.TruncateBackward(UInt32 diskNumber, Int64 offset) in c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipSegmentedStream.cs:line 364\r\n   at Ionic.Zip.ZipEntry.Write(Stream s) in c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipEntry.Write.cs:line 1914\r\n   at Ionic.Zip.ZipFile.Save() in c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipFile.Save.cs:line 123\r\n   at Ionic.Zip.ZipFile.Save(String fileName) in c:\\dinoch\\dev\\dotnet\\zip\\DotNetZip\\Zip Partial DLL\\ZipFile.Save.cs:line 371\r\n....\r\n\r\nIm using Version 1.9.1.2 on VS 2010. \r\n",
      "PostedDate": "2010-02-25T09:08:24.783-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Btw a friend of mine reported the same error while trying to compress a 100MB file!! As for me I have 3.4GB free on my primary hard disk with 1GB free memory and the operation took ~40s to complete.\r\nCode:\r\nusing (ZipFile zip = new ZipFile())\r\n{\r\nZipEntry e1 = zip.AddFile(\"c:\\\\Output\\\\Movie253.avi\");\r\nzip.MaxOutputSegmentSize = 50 * 1024 * 1024;\r\ntry\r\n{\r\nzip.Save(\"c:\\\\Output\\\\test.zip\");\r\n}\r\ncatch (Exception Exception)\r\n{\r\nMessageBox.Show(Exception.Message);\r\n}\r\n}",
      "PostedDate": "2010-02-25T09:23:20.883-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I'll try again....  so far, no luck reproducing it after many trials. \r\n",
      "PostedDate": "2010-02-25T19:36:46.27-08:00",
      "Id": -2147483648
    },
    {
      "Message": "So my app works fine on your system for files > 750mb?\r\n\r\nAnother thing that I noticed that's happening in the output directory while the program is running: \r\nYou can see it making the z01, z02, z03 files and there is also tmp file (ex: DotNetZip-xxxxxx.tmp) that I am assuming is used to build each of the segments (which are then renamed to .zXX files).\r\nAfter the exception is thrown and the zXX files disappear from the output directory, I have noticed that a DotNetZip-xxxxxx.tmp file appears in the running directory (ex: bin\\Debug). The file size is the same of the max segment size.",
      "PostedDate": "2010-02-26T07:27:53.373-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I made a file watch to watch the directory, log results are below:\r\n\r\n----------------------------------------------------------------------------------------\r\n26/02/2010 2:20:06 PM - Created: C:\\ziptest\\zipped\\DotNetZip-riatlxn0.tmp\r\n26/02/2010 2:20:06 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:16 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-riatlxn0.tmp\r\n26/02/2010 2:20:16 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-riatlxn0.tmp renamed to C:\\ziptest\\zipped\\ziptest.z01\r\n26/02/2010 2:20:16 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:16 PM - Created: C:\\ziptest\\zipped\\DotNetZip-wb4jcsnj.tmp\r\n26/02/2010 2:20:16 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:24 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-wb4jcsnj.tmp\r\n26/02/2010 2:20:24 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-wb4jcsnj.tmp renamed to C:\\ziptest\\zipped\\ziptest.z02\r\n26/02/2010 2:20:24 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:24 PM - Created: C:\\ziptest\\zipped\\DotNetZip-jdwrucqm.tmp\r\n26/02/2010 2:20:24 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:32 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-jdwrucqm.tmp\r\n26/02/2010 2:20:32 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-jdwrucqm.tmp renamed to C:\\ziptest\\zipped\\ziptest.z03\r\n26/02/2010 2:20:32 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:32 PM - Created: C:\\ziptest\\zipped\\DotNetZip-zrp1apoy.tmp\r\n26/02/2010 2:20:32 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:39 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-zrp1apoy.tmp\r\n26/02/2010 2:20:39 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-zrp1apoy.tmp renamed to C:\\ziptest\\zipped\\ziptest.z04\r\n26/02/2010 2:20:39 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:39 PM - Created: C:\\ziptest\\zipped\\DotNetZip-w3g3l1ip.tmp\r\n26/02/2010 2:20:39 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:47 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-w3g3l1ip.tmp\r\n26/02/2010 2:20:47 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-w3g3l1ip.tmp renamed to C:\\ziptest\\zipped\\ziptest.z05\r\n26/02/2010 2:20:47 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:47 PM - Created: C:\\ziptest\\zipped\\DotNetZip-hdczibt0.tmp\r\n26/02/2010 2:20:47 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:54 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-hdczibt0.tmp\r\n26/02/2010 2:20:54 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-hdczibt0.tmp renamed to C:\\ziptest\\zipped\\ziptest.z06\r\n26/02/2010 2:20:54 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:20:54 PM - Created: C:\\ziptest\\zipped\\DotNetZip-atxgob2w.tmp\r\n26/02/2010 2:20:54 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:21:02 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-atxgob2w.tmp\r\n26/02/2010 2:21:02 PM - Renamed: C:\\ziptest\\zipped\\DotNetZip-atxgob2w.tmp renamed to C:\\ziptest\\zipped\\ziptest.z07\r\n26/02/2010 2:21:02 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:21:02 PM - Created: C:\\ziptest\\zipped\\DotNetZip-hvr4zugj.tmp\r\n26/02/2010 2:21:02 PM - Changed: C:\\ziptest\\zipped\r\n26/02/2010 2:21:05 PM - Changed: C:\\ziptest\\zipped\\ziptest.z01\r\n26/02/2010 2:21:05 PM - Changed: C:\\ziptest\\zipped\\DotNetZip-hvr4zugj.tmp\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\DotNetZip-hvr4zugj.tmp\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z07\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z06\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z05\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z04\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z03\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z02\r\n26/02/2010 2:21:05 PM - Deleted: C:\\ziptest\\zipped\\ziptest.z01\r\n26/02/2010 2:21:06 PM - Changed: C:\\ziptest\\zipped\r\n----------------------------------------------------------------------------------------\r\n\r\nOne thing that looks out of place is \"Changed: C:\\ziptest\\zipped\\ziptest.z01\" right before the deletes start. Why would that file be changed at that point in the process?",
      "PostedDate": "2010-02-26T11:57:48.777-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I found another FileWatcher that shows things in more detail\r\n(http://www.codeproject.com/KB/files/FileSystemWatcherChaos1.aspx)\r\n\r\nWhat causes the change event to fire on that z01 file is : Attributes\r\n\r\nSo something is causing the attributes to change I guess...",
      "PostedDate": "2010-02-26T12:59:57.307-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I partly fix the problem by commenting line 1883 in ZipEntry.Write.cs:\r\nzss.TruncateBackward(_diskNumber, _RelativeOffsetOfLocalHeader);\r\nThis function is being called with _diskNumber having a value of zero. This deleted all the created files in question. The output files now seem to be valid but I get twice as many files as expected. The last file has the extension z11 instead of the expected z05 but after I deleted files z01 to z05 the windows zip extractor yielded a valid file! I will investigate further in this issue when I find the time...Any ideas meanwhile?",
      "PostedDate": "2010-02-27T01:29:34.69-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Could it be due to the fact that I'm using a 64bit version of Windows? Anyway I thought you might want to get into my PC remotely via, say, TeamViewer since you are not being able to reproduce the problem over there. I'd be more than glad to let you in if that's the easiest way to go.",
      "PostedDate": "2010-02-27T02:03:29.81-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I'm also using a 64bit version of windows (win7 pro)",
      "PostedDate": "2010-03-01T06:17:15.073-08:00",
      "Id": -2147483648
    },
    {
      "Message": "Hello,\r\n\r\nI am having the same problem (I think).  But I am seeing it with relatively small files; JPGS of about 1M or so.  I am attempting to create a split archive of a bunch of JPG files.  I get the following stack trace:\r\n\r\nSystem.IO.FileNotFoundException: Could not find file 'c:\\image\\resize\\hugephoto\\hugephoto_ywszej4l.z01'.\r\nFile name: 'c:\\image\\resize\\hugephoto\\hugephoto_ywszej4l.z01'\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.File.Move(String sourceFileName, String destFileName)\r\n   at Ionic.Zip.ZipSegmentedStream.TruncateBackward(UInt32 diskNumber, Int64 offset) in c:\\DotNetZip\\v1.9.1.4\\DotNetZip\\Zip Partial DLL\\ZipSegmentedStream.cs:line 368\r\n   at Ionic.Zip.ZipEntry.Write(Stream s) in c:\\DotNetZip\\v1.9.1.4\\DotNetZip\\Zip Partial DLL\\ZipEntry.Write.cs:line 1912\r\n   at Ionic.Zip.ZipFile.Save() in c:\\DotNetZip\\v1.9.1.4\\DotNetZip\\Zip Partial DLL\\ZipFile.Save.cs:line 123\r\n   at Ionic.Zip.ZipFile.Save(String fileName) in c:\\DotNetZip\\v1.9.1.4\\DotNetZip\\Zip Partial DLL\\ZipFile.Save.cs:line 371\r\n   at adppu.CompressedArchive_Filter.Process(WorkItem input) in C:\\projects\\ADPhotoProcessor\\trunk\\CompressedArchive_Filter\\CompressedArchive_Filter.cs:line 66\r\n\r\nThe code is pretty standard, being taken largely from the spanning example:\r\n\r\nsnip...\r\nZipFile zf = new ZipFile();\r\n            zf.MaxOutputSegmentSize = max_zipfile_segment_size;\r\n\r\n            try\r\n            {\r\n                foreach (var f in raw)\r\n                {\r\n                    zf.AddFile(f.FullName);\r\n                }\r\n\r\n                zf.Save(fullzippath);\r\n            }\r\n            catch (Exception e)\r\nsnip...\r\n\r\nHas anyone made any progress on this?",
      "PostedDate": "2010-03-08T14:24:57.183-08:00",
      "Id": -2147483648
    },
    {
      "Message": "I am experiencing the same problem with splitted zipfiles.\r\n\r\nI'm trying to zip 11 files, totaling about 3.98mb.\r\nWhen zipped to 1 file it's about 1.15mb.\r\nI try to zip it to parts of 1mb maximum when I get the error.\r\n\r\nCode:\r\n        Dim zip1 As ZipFile = New ZipFile\r\n        zip1.AddDirectory(\"c:\\temp\")\r\n        zip1.MaxOutputSegmentSize = 1*1024*1024\r\n        zip1.Save(\"c:\\zipit.zip\")\r\n\r\nError:\r\n\"System.IO.FileNotFoundException: Could not find file 'c:\\zipit.z01'.\r\nFile name: 'c:\\zipit.z01'\r\n   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)\r\n   at System.IO.File.Move(String sourceFileName, String destFileName)\r\n   at Ionic.Zip.ZipSegmentedStream.TruncateBackward(UInt32 diskNumber, Int64 offset)\r\n   at Ionic.Zip.ZipEntry.Write(Stream s)\r\n   at Ionic.Zip.ZipFile.Save()\r\n   at Ionic.Zip.ZipFile.Save(String fileName)\r\n   at WindowsApplication1.Form1.Button2_Click(Object sender, EventArgs e) in C:\\DOTNET\\Projects\\WinForms-DotNetZip\\WinForms-ZipUp\\ZipUp-Form1.vb:line 46\"\r\n",
      "PostedDate": "2010-03-16T07:07:34.677-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-03-17T20:37:43.123-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Any progress on this issue? I got the same error when I try to split into 1.2 MB files. However, the same source works with 1.44 MB files without problems. My total zip file is only 2.12 MB.",
      "PostedDate": "2010-04-18T11:19:37.717-07:00",
      "Id": -2147483648
    },
    {
      "Message": "Any progress on this issue? I got the same error when I try to split into 1.2 MB files. However, the same source works with 1.44 MB files without problems. My total zip file is only 2.12 MB.",
      "PostedDate": "2010-04-18T11:23:45.333-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-06-10T01:45:45.7-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I have the exact same problem, zipping a directory of 104mb and splitting into any file size except 32MB will cause an exception.\r\nIt happens whether I'm using Zip64 or not.\r\nNote that I am using  Intel core 2  extreme (quad core).\r\n",
      "PostedDate": "2010-06-10T01:51:43.39-07:00",
      "Id": -2147483648
    },
    {
      "Message": "I have the same issue and I tried to download your source code and little investigate it and it looks that there is problem with TruncateBackward method in ZipSegmentedStream class. \r\n// get a new temp file, try 3 times:\r\n            for (int i = 0; i < 3; i++)\r\n            {\r\n                try\r\n                {\r\n                    _currentTempName = SharedUtilities.InternalGetTempFileName();\r\n                    File.Move(CurrentName, _currentTempName);  // move the .z0x file back to a temp name\r\n                    break; // possible fix of this issue\r\n                }\r\n                catch(IOException)\r\n                {\r\n                    if (i == 2) throw;\r\n                }\r\n            }",
      "PostedDate": "2010-08-24T13:01:11.207-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2010-08-31T10:10:51.987-07:00",
      "Id": -2147483648
    },
    {
      "Message": "This code is triggering the exception:\r\n\r\npublic void CreateMultipartArchive(DirectoryInfo parentDirectory)\r\n        {\r\n            var sourceFile = CreateRandomFileInfo(parentDirectory, 0x1000000, 42);\r\n\r\n            var zipFilePath = Path.Combine(parentDirectory.FullName, \"test.zip\");\r\n\r\n            using (var zipFile = new ZipFile(zipFilePath))\r\n            {\r\n                zipFile.AddFiles(new [] { sourceFile.FullName }, false, string.Empty);\r\n                zipFile.MaxOutputSegmentSize = 65536;\r\n                zipFile.Save();\r\n            }\r\n        }\r\n\r\n        private static FileInfo CreateRandomFileInfo(DirectoryInfo parentDirectory, int lengthOfRandomContent, int randomSeed)\r\n        {\r\n            var folderPath = parentDirectory == null ? Path.GetTempPath() : parentDirectory.FullName;\r\n\r\n            var newName = Path.Combine(folderPath, Path.GetRandomFileName());\r\n            var result = new FileInfo(newName);\r\n            \r\n            const int BUFFER_SIZE = 0x4000;\r\n            var bytesWritten = 0;\r\n\r\n            using (var stream = result.OpenWrite())\r\n            {\r\n                var random = new Random(randomSeed);\r\n                var buffer = new byte[BUFFER_SIZE];\r\n\r\n                for (var i = BUFFER_SIZE; i < lengthOfRandomContent; i += BUFFER_SIZE)\r\n                {\r\n                    random.NextBytes(buffer);\r\n                    stream.Write(buffer, 0, BUFFER_SIZE);\r\n                    bytesWritten += BUFFER_SIZE;\r\n                }\r\n\r\n                var bytesRemaining = lengthOfRandomContent - bytesWritten;\r\n             \r\n                buffer = new byte[bytesRemaining];\r\n                random.NextBytes(buffer);\r\n                stream.Write(buffer, 0, bytesRemaining);\r\n\r\n                stream.Close();\r\n            }\r\n\r\n            return result;\r\n        }",
      "PostedDate": "2010-11-30T13:37:55.073-08:00",
      "Id": -2147483648
    },
    {
      "Message": "This is a real problem; I've reproduced this (and others similar) here, and I've now posted changes to the ZipSegmentedStream.cs and callers of that class, to correct these problems.  I had tests in the test tree to track this, and I believe they all passed, but on re-running the tests with my new copy of vS2010, many of those tests failed in exactly the way described here, and in other bugs. \r\n\r\nThis will be fixed in v1.9.1.6 of the library. \r\nComing soon. \r\n",
      "PostedDate": "2011-06-17T20:26:07.34-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-17T20:26:44.157-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-17T20:28:30.147-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:41.99-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:54.7-07:00",
      "Id": -2147483648
    }
  ]
}