Aug 23, 2010 at 9:49 AM


Can someone help me with my problem?

If I do:

string[] fileNames = new string[]{ "bla", "bla2"};

string zipFic = "bleble";

SevenZip.SevenZipCompressor szC = new SevenZip.SevenZipCompressor();
szC.ArchiveFormat = OutArchiveFormat.SevenZip;
szC.CompressionMode = CompressionMode.Create;
szC.CompressionMethod = CompressionMethod.Default;
szC.CompressionLevel = SevenZip.CompressionLevel.Ultra;
szC.CompressFiles(zipFic, fileNames);


It works ok, but if I do first:

if (saveDialog1.ShowDialog() == DialogResult.OK)

zipFic = saveDialog1.FileName;

It stops on .CompressFiles and shows me a ContextSwitchDeadlock exception after around 1 min.

Aug 25, 2010 at 6:43 AM

I am going to make an issue out of this. Please attach the sample project that exposes the deadlock to the issue item.

Aug 25, 2010 at 6:43 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.
Jun 4, 2012 at 5:00 PM

There appears to be the same issue with ArchiveExtractCallback on line 489. If I call the ExtractFile overload with a stream I get a deadlock. Bypassing that line gets me passed the deadlock.