Thanks for the reply. I tried with the latest code but I still get the problem.
Something else I looked into was adding files to an already existing zip that is using spanning.
foreach (var pdf in pdfFiles)
using (var outputZip = new ZipFile(@"c:\temp\span.zip"))
outputZip.MaxOutputSegmentSize = 1417123;
When I call Save the second time through the loop there is already an span.z01 but an exception is raised in
Ionic.Zip.ZipSegmentedStream._SetWriteStream(UInt32 increment) in c:\DotNetZip\Zip Partial DLL\ZipSegmentedStream.cs:line 317
because its trying to delete span.z01 and it appears to have the file open.
What I'm trying to do is build a zip file and break it up into segments. I can't add all the files at the same time and I might need to open the file up a few times and add more files until completion.
Everything seems to work ok if I use 1 zip but when I try and make use of spanning I seem to run into problems.