Reputation: 256
I try to extract files from an archive, and I have exception 'System.ArgumentOutOfRangeException'.
I think it can be problem in string, which contains the file name.
var cpioExtractor = new SevenZipExtractor(archiveName);
I try to input the path to file manually and it doesn't change anything.
Where can be problem?
The stack trace
in System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
in System.String.Substring(Int32 startIndex)
in SevenZip.Formats.FormatByFileName(String fileName, Boolean reportErrors)
in SevenZip.FileChecker.CheckSignature(String fileName, Int32& offset, Boolean& isExecutable)
in SevenZip.SevenZipExtractor.Init(String archiveFullName)
in SevenZip.SevenZipExtractor..ctor(String archiveFullName)
Upvotes: 1
Views: 1612