3
Vote

exception during archiving

description

The execution has failed due to the bug in the SevenZipSharp.
Please report about it to http://sevenzipsharp.codeplex.com/WorkItem/List.aspx, post the release number and attach the archive.

file attachments

comments

TarunJindal wrote Jan 18, 2016 at 5:22 AM

Hi,

Even I am getting the same error. My test code is below :

``` `Console.WriteLine("ModelMaps CreateTestModelMaps()");
        using (var input = new MemoryStream(Encoding.UTF8.GetBytes(@"ModelMaps.xml")))
        using (var output = new MemoryStream())
        {
            var compressor = new SevenZipCompressor
            {
                ArchiveFormat = OutArchiveFormat.BZip2,
                CompressionMethod = CompressionMethod.Default,
                CompressionLevel = CompressionLevel.Normal
            };
            compressor.CompressStream(input, output);

            var temp = output.ToArray();
        }``

wrote Jan 18, 2016 at 5:23 AM

TarunJindal wrote Jan 18, 2016 at 5:52 AM

Its same as "Item number: 13635"

MorganPeat wrote Jan 18, 2016 at 11:54 AM

This appears to have been caused by a change to ArchiveUpdateCallback.IntEventArgsHandler in commit 84075.

The line
lock (_files)
...may throw a null reference exception (returned as 0x80004003)

Reverting this line back to the previous commit
lock (this)
.. appears to fix the problem. I am unsure of the wider effect this may have, however...

wrote Jan 19, 2016 at 12:39 AM