1
Vote

BeginArchiveExtract crashes app when source files are corrupted or missing

description

When extracting a RAR multi-volume archive, if one of the archives is missing or corrupt, the application crashes. The exception cannot be handled within the app.
 
I'm using VB2010.
 
Here is the innerexception debug info received for the error received when one of the volumes is missing:
 
InnerException: System.IO.FileNotFoundException
   Message=The volume "c:\downloads\la_boheme.part02.rar" was not found. Extraction can be impossible.
   Source=mscorlib
   StackTrace:
     Server stack trace: 
        at SevenZip.CallbackBase.ThrowException()
        at SevenZip.SevenZipExtractor.ExtractArchive(String directory)
        at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs)
        at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
     Exception rethrown at [0]: 
        at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
        at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
        at SevenZip.SevenZipExtractor.ExtractArchiveDelegate.EndInvoke(IAsyncResult result)

comments