This project is read-only.

exception during archiving


The execution has failed due to the bug in the SevenZipSharp.
Please report about it to, post the release number and attach the archive.

file attachments


TarunJindal wrote Jan 18, 2016 at 6:22 AM


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 6:23 AM

TarunJindal wrote Jan 18, 2016 at 6:52 AM

Its same as "Item number: 13635"

MorganPeat wrote Jan 18, 2016 at 12:54 PM

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 1:39 AM