CodingWonders / DISMTools

The connected place for Windows system administration
GNU General Public License v3.0
331 stars 12 forks source link

Program Exception #114

Closed arielsil closed 4 months ago

arielsil commented 4 months ago

What is the bug about? Please describe the bug you're experiencing. : Internal Error - invalid arg - Param: Index

How does it happen?

Click Command / App Pkgs / Get app pkg info

Expected behavior

Get package info for the wim

Additional context

1) Happens every time 2) If I continue, the proj continues. However, on 2nd occurance the programs errors (

System.ArgumentOutOfRangeException: InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index at System.Windows.Forms.ListBox.ObjectCollection.RemoveAt(Int32 index) at DISMTools.GetAppxPkgInfoDlg.GetAppxPkgInfoDlg_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Form.SetVisibleCore(Boolean value) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at DISMTools.MainForm.GetProvisionedAppxPackages_Click(Object sender, EventArgs e) at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Error Message: InvalidArgument=Value of '-1' is not valid for 'index'. Parameter name: index

Error Code (HRESULT): -2146233086

Machine information:

Operating system information:

Processor information:

This information is gathered to help isolate the issue to a specific hardware or software configuration. No information that can be used to identify the user or the exact system is gathered.

CodingWonders commented 4 months ago

Can you tell me more about the WIM file you're managing? Does this happen with all Windows images and installations, or just this image?

CodingWonders commented 4 months ago

I'm going to close this issue. Feel free to reopen it or make a new issue if you encounter the same problem.