This project is read-only.

BeginCompressDirectory - more than one file issue

Dec 18, 2013 at 2:41 PM

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
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)
            groupBox_Processing.Text = string.Format("Processing: In Progress [{0}%]", progressBar1.Value);
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