Exception when creating split archive


When attempting to create a split archive, an exception is generated when it attempts to create a temporary file. Exception is produced in ZipSegmentedStream.cs at line 368 "Could not find file ....z01"
Duplicate the error: select enough source files, and a split-size small enough, so that at least .z01 and .z02 and .zip (3 segments) would need to be created. Exception occurs when .z01 "fills", and the code is preparing to begin to use .z02
Summary of problem: code attempts to create a temporary file name and move the .z01 file to it. However, the current code does not stop, even when the File.Move() is successful, and continues generating additional temporary file names, and eventually throws the "Could not find file" exception (because the first one actually succeeded, and after that, the file really is no longer there).
PROPOSED FIX: ZipSegmentedStream.cs approx line 365. Just after the File.Move() add a break; statement
Closed Jun 14, 2011 at 4:09 AM by Cheeso
fixed in changeset 79085. First binary with this fix, will be v1.9.1.6


Cheeso wrote Nov 6, 2010 at 2:42 PM

Thanks for this report; I will implement this fix and get back to you.

wrote Jun 14, 2011 at 4:06 AM

wrote Jun 14, 2011 at 4:09 AM

wrote Feb 22, 2013 at 1:43 AM

wrote May 16, 2013 at 12:31 PM