Quantcast
Channel: sharpcompress Discussions Rss Feed
Viewing all articles
Browse latest Browse all 239

New Post: 'System.ArgumentOutOfRangeException' occurred in mscorlib.dll

$
0
0
Admittedly, I've never provided that before so please let me know if there's anything thing else I can provide. And thank you for looking into this for me.

here is a copy/paste of what appears in the Call Stack window:
    mscorlib.dll!System.ThrowHelper.ThrowArgumentOutOfRangeException(System.ExceptionArgument argument, System.ExceptionResource resource)  Unknown
    mscorlib.dll!System.BitConverter.ToInt16(byte[] value, int startIndex)  Unknown
    SharpCompress.dll!SharpCompress.IO.MarkingBinaryReader.ReadInt16()  Unknown
    SharpCompress.dll!SharpCompress.Common.Rar.Headers.RarHeader.ReadFromReader(SharpCompress.IO.MarkingBinaryReader reader)    Unknown
    SharpCompress.dll!SharpCompress.Common.Rar.Headers.RarHeader.Create(SharpCompress.IO.MarkingBinaryReader reader)    Unknown
    SharpCompress.dll!SharpCompress.Common.Rar.Headers.RarHeaderFactory.ReadNextHeader(System.IO.Stream stream) Unknown
    SharpCompress.dll!SharpCompress.Common.Rar.Headers.RarHeaderFactory.ReadHeaders()   Unknown
    SharpCompress.dll!SharpCompress.Common.Rar.RarVolume.GetVolumeFileParts()   Unknown
    mscorlib.dll!System.Collections.Generic.List<SharpCompress.Common.Rar.RarFilePart>.List(System.Collections.Generic.IEnumerable<SharpCompress.Common.Rar.RarFilePart> collection)    Unknown
    System.Core.dll!System.Linq.Enumerable.ToList<SharpCompress.Common.Rar.RarFilePart>(System.Collections.Generic.IEnumerable<SharpCompress.Common.Rar.RarFilePart> source)    Unknown
    SharpCompress.dll!SharpCompress.Utility.ToReadOnly<SharpCompress.Common.Rar.RarFilePart>(System.Collections.Generic.IEnumerable<SharpCompress.Common.Rar.RarFilePart> items)    Unknown
    SharpCompress.dll!SharpCompress.Archive.Rar.FileInfoRarArchiveVolume.FileInfoRarArchiveVolume(System.IO.FileInfo fileInfo, SharpCompress.Common.Options options)    Unknown
    SharpCompress.dll!SharpCompress.Archive.Rar.RarArchiveVolumeFactory.GetParts()  Unknown
    SharpCompress.dll!SharpCompress.LazyReadOnlyCollection<SharpCompress.Common.Rar.RarVolume>.LazyLoader.MoveNext()    Unknown
    SharpCompress.dll!SharpCompress.Archive.Rar.RarArchiveEntryFactory.GetFileParts()   Unknown
    SharpCompress.dll!SharpCompress.Archive.Rar.RarArchiveEntryFactory.GetMatchedFileParts()    Unknown
    SharpCompress.dll!SharpCompress.Archive.Rar.RarArchiveEntryFactory.GetEntries() Unknown
    SharpCompress.dll!SharpCompress.LazyReadOnlyCollection<SharpCompress.Archive.Rar.RarArchiveEntry>.LazyLoader.MoveNext() Unknown
    SharpCompress.dll!SharpCompress.Archive.ArchiveFactory.WriteToDirectory(string sourceArchive, string destinationDirectory, SharpCompress.Common.ExtractOptions options) Unknown
>   defraggg.exe!defraggg.Form1.ButtonTest_Click(Object sender, System.EventArgs e) Line 96 Basic
    System.Windows.Forms.dll!System.Windows.Forms.Control.OnClick(System.EventArgs e)   Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Button.OnClick(System.EventArgs e)    Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Button.OnMouseUp(System.Windows.Forms.MouseEventArgs mevent)  Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m, System.Windows.Forms.MouseButtons button, int clicks)   Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m)   Unknown
    System.Windows.Forms.dll!System.Windows.Forms.ButtonBase.WndProc(ref System.Windows.Forms.Message m)    Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Button.WndProc(ref System.Windows.Forms.Message m)    Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m)   Unknown
    System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg, System.IntPtr wparam, System.IntPtr lparam)  Unknown
    [Native to Managed Transition]  
    [Managed to Native Transition]  
    System.Windows.Forms.dll!System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(System.IntPtr dwComponentID, int reason, int pvLoopData)  Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(int reason, System.Windows.Forms.ApplicationContext context)    Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Application.ThreadContext.RunMessageLoop(int reason, System.Windows.Forms.ApplicationContext context) Unknown
    System.Windows.Forms.dll!System.Windows.Forms.Application.Run(System.Windows.Forms.ApplicationContext context)  Unknown
    Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() Unknown
    Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()    Unknown
    Microsoft.VisualBasic.dll!Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(string[] commandLine)   Unknown
    [Native to Managed Transition]  
    mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) Unknown
    Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()   Unknown
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state)    Unknown
    mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)   Unknown
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)   Unknown
    mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
    mscorlib.dll!System.Threading.ThreadHelper.ThreadStart()    Unknown
to clarify a little more. This works fine:
OpenFileDialog1.ShowDialog()
Dim diagPath As String = OpenFileDialog1.FileName.ToString
ArchiveFactory.WriteToDirectory(diagPath, "C:\WiiShare\Uncomp", ExtractOptions.ExtractFullPath)
I can open an OpenFileDialog box and pass the file path, as a string (diagPath), to ArchiveFactory.WriteToDirectory. No problems. All I have to do is pick the .rar file and it picks up the whole collection.

However, if I try to pick the file path from an item in a ListBox, like this:
Dim diagPath As String = ListBox1.SelectedItem.ToString
ArchiveFactory.WriteToDirectory(diagPath, "C:\WiiShare\Uncomp", ExtractOptions.ExtractFullPath)
It won't. When I pause to debug, the file path is a string, for sure. I have the listbox set to make single selections only. I have even tried to pass the filepath to a textbox, then to a string variable, and then into ArchiveFactory.

The last thing I want to look at is mscorlib.dll. Have you ever run into problems with this file before? I'm thinking I might try to run this project on another computer this week to see if it makes a difference.

Thanks again for any help/advice you can offer.

Viewing all articles
Browse latest Browse all 239

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>