It fails all the time. It doesn't raise any error but resulting zip file is corrupted. When I try to open the zip file it says 'Unexpected end of archive'
When I put the BeginUpdate() and CommitUpdate() in the for-next loop everything is fine, but very slow comparing to first.
Thanks
My code is like below (nothing special with it actually):
------
Dim zip1 As Zip.ZipFile = Zip.ZipFile.Create(Me.txTargetZip.Text)
------
zip1.BeginUpdate()
For Each strFilePath In strFiles 'strFiles is a simple string array
zip1.Add(strFilePath)
Next
zip1.CommitUpdate()
------