2
Vote

Extraction Error

description

I have a .Net 3.5 application that is having problems calling SevenZipExtractor.ExtractArchive(Directory).
 
I setup two VM's both new installations of xp professional all windows security updates. On one machine the .Net Framework 3.5 is installed and the other .Net Framework 3.5 SP1 in installed.
 
The app works fine on both vm's when calling BeginExtractArchive, but when using the ExtractArchive method the VM with .Net 3.5 errors complaining that one of the Asynchronous Events it is trying to call is null. Even if I attach a handler to all the events the app will still error because the event is null.
 
Now on the VM with the .Net Framework 3.5 SP1 installed the app works exactly as expected. With just SevenZipExtractor.Extracting event just subscribed to.
 
SevenZip.SevenZipException: 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.
at SevenZip.SevenZipBase.ThrowException(CallbackBase handler, Exception[] e) in D:\Repository\trunk\Libraries\SevenZip\0.64\SevenZip\Common.cs:line 330
at SevenZip.SevenZipBase.CheckedExecute(Int32 hresult, String message, CallbackBase handler) in D:\Repository\trunk\Libraries\SevenZip\0.64\SevenZip\Common.cs:line 357
at SevenZip.SevenZipExtractor.ExtractArchive(String directory) in D:\Repository\trunk\Libraries\SevenZip\0.64\SevenZip\SevenZipExtractor.cs:line 1288
 
I used the .Net Framework Detector (http://www.asoft.be/prod_netver.html) on both VM's
 
NON WORKING VM
.NET FW 2.0 SP 1
.NET FW 3.0 SP 1
.NET FW 3.5
.NET FW 4.0 Client
.NET FW 4.0 Full
 
WORKING VM
.NET FW 2.0 SP 2
.NET FW 3.0 SP 2
.NET FW 3.5 SP 1
.NET FW 4.0 Client
.NET FW 4.0 Full

comments

pjumpleby wrote Oct 26, 2010 at 4:10 PM

Referenced the SevenZipSharp.dll version 0.63 instead of 0.64 and both VM's extracted the archives perfectly as they did before.

markhor wrote Oct 27, 2010 at 6:39 AM

Could you please help me with debugging this issue? It would be nice if you put the breakpoint at line 116 of Common.cs and trace the program behavior with F10. OnEvent method is called each time an event is about to be fired, and the exception you get must be thrown over there.

wrote Feb 22, 2013 at 1:16 AM

wrote May 26, 2013 at 8:00 PM