This project is read-only.
1
Vote

SevenZipExtractor.ExtractFile

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.
SevenZipExtractor.SetLibraryPath(Path.Combine(
   @"C:\dll", 
   "7z.dll"));

var buffer = new byte[] {};
using (var extractor = new SevenZipExtractor(handleDownloadedFile))
{                
   extractor.ExtractFile(
      "handle.exe",      
      new MemoryStream(buffer, true));      
}
0.64.3890.29348
My archive is the Handle.zip archive downloaded from "http://download.sysinternals.com/files/Handle.zip"


If I use a FileStream instead of a MemoryStream It passes the extraction but I get a Win32Exception later when I try to use the extracted file:
"The process cannot access the file because it is being used by another process"
Edit: I feel like a complete idiot. I was not closing the stream my self. Initializing it in a using statement works fine. Sorry

comments