BeginCompressDirectory - more than one file issue

Dec 18, 2013 at 2:41 PM
Hi,

I have created simple application using Sevenzip library.
I would like to compress selected directory. I have implemented this actions using BeginCompressDirectory() function. Everything works fine if in directory is just one file. Progress event is correctly fired and I see what is the current status of compression.
Window with compression action is called from upper WForm using ShowDialog().
I have pinned a function to Compressing event and everything works fine

However if I add a second file to this directory the Compressing event is not fired and I don't see current status of compression.

Any ideas what can be wrong ?

Few lines of my code:
//this is call of window with progress bar and function for compression
newCompression.ShowDialog();
compEngine.Compressing          += new EventHandler<ProgressEventArgs>(zip_Compressing);
compEngine.CompressionFinished  += new EventHandler<EventArgs>(zip_ObjectCompressionCompleted);
                
                if (isFolderType)
                    compEngine.BeginCompressDirectory(FileNameToCompress, outFileNameToCompress);

public void zip_Compressing(object sender, ProgressEventArgs e)
        {
            progressBar1.Increment(e.PercentDelta);
            groupBox_Processing.Text = string.Format("Processing: In Progress [{0}%]", progressBar1.Value);
            Refresh();            
        }
BR,
di4blo
Mar 21, 2014 at 5:17 PM
I'm having similar issue with
BeginCompressFiles(string archiveName, params string[] fileFullNames);

"Compressing" event never fires if the array contains more than one file