squid-box / SevenZipSharp

Fork of SevenZipSharp on CodePlex
GNU Lesser General Public License v3.0
274 stars 101 forks source link

Issue with compressing event & deflate #77

Open VisualUser opened 4 years ago

VisualUser commented 4 years ago

Ok, so I'm not sure if I'm a complete idiot or if this is a bug, but I was testing some compression out with a progress bar using the compression event and I discovered that deflate & deflate64 with the Zip OutArchiveFormat do not activate the compression event. (Using Ultra Level) It works with all the other compression formats and methods are far as I can tell. Code for event: sevenZipCompressor.Compressing += (sender, args) => { Console.WriteLine("Should be activated."); //Isn't activated at all progress.Report(args.PercentDone); }; I'm using the SevenZipCompressor.CompressDirectory(); method.

EDIT: Ok, so it appears that it works while compressing files (SevenZipCompressor.CompressFiles();), but not with the compress directory method.

squid-box commented 4 years ago

I've confirmed this is not working, but I actually get no events for either CompressDirectory or CompressFiles when using OutArchiveFormat.Zip and anything other than CompressionMethod.Copy.

I'll dig deeper into this at some point, but it's likely going to be a while as I have no spontaneous idea of what's broken.

psulek commented 1 year ago

@squid-box Hi there, i can confirm that i still dont have event Compressing fired when using OutArchiveFormat.Zip with calling CompressDirectoryAsync. When using OutArchiveFormat.SevenZip everythink works fine.

Nuget Squid-Box.SevenZipSharp version 1.5.0.366.

Lukiluc29 commented 1 year ago

@squid-box Do you have any news on this problem?