I have used parallel foreach in my project which compresses number of text files present in a particular folder.
I have executed the project n number of times and some folders are giving issues while compression and exception thrown states as follows:
"The execution has failed due to the bug in the SevenZipSharp.
Please report about it to
, post the release number and attach the archive"
I am not able to detect what the actual error is.
When the same folders I try to compress individually, it gets compressed.
Code snippet is as follows:
public static bool ZipFileUsingDLL(string strZipFileName, string strInputFolder)
bool result = true;
SevenZipCompressor.SetLibraryPath(@"Path of 7z.dll");
var tmp = new SevenZipCompressor();
tmp.CompressionMethod = CompressionMethod.Lzma;
tmp.CompressionLevel = CompressionLevel.Ultra;
tmp.VolumeSize = 9000000;
catch (Exception ex)