Unhandled exception adding correction in in expert settings for new conversion task

Request Type:
BUG [MINOR]

MCEBuddy Version and Type (32bit or 64bit): 2.5.1 2019-08-12

Operating System and Type (32bit or 64bit): WIn10x64

Summary of the problem or suggestion:
Unhandled Exception occurs attempting to add a correction in the expert settings of brand new conversion task (before saving the new task). Workaround is to click the “Continue” button and the dialog is constructed properly with an empty list of corrections.

Steps to replicate the bug:
In Settings, Add new Conversion Task. Give it a name. Click on “Expert Settings”. Click on “Corrections”. Error should occur. Workaround is to click on “Continue”.

I suspect the app is not checking to initialize the list/array when the Corrections button is pressed. It gets initialized when you press “Continue” and the dialog opens normally, ready to add the first correction. This is a new conversion task, so there is no persisted/saved task (yet) that would normally initialize these (defaulted empty) sub-object structures as part of the save/persist method or in the load/deserialize method if this conversion task already existed.


************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of ‘-2147483648’ is not valid for ‘SelectedIndex’.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at MCEBuddy.GUI.ConversionTaskSetSeriesIDForm.SetSeriesId_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll


MCEBuddy.GUI
Assembly Version: 2.5.1.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/MCEBuddy.GUI.exe


System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll


System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3801.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll


System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll


MCEBuddy.Globals
Assembly Version: 2.5.1.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/MCEBuddy.Globals.DLL


MCEBuddy.Configuration
Assembly Version: 2.5.1.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/MCEBuddy.Configuration.DLL


System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll


System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll


System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll


MCEBuddy.ProgressODoom
Assembly Version: 2.5.1.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/MCEBuddy.ProgressODoom.DLL


MCEBuddy.Util
Assembly Version: 2.5.1.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/MCEBuddy.Util.DLL


Newtonsoft.Json
Assembly Version: 9.0.0.0
Win32 Version: 9.0.1.19813
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/Newtonsoft.Json.DLL


System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll


System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll


System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll


System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll


SharpConfig
Assembly Version: 3.2.0.0
Win32 Version: 2.5.1.0
CodeBase: file:///C:/Program%20Files/MCEBuddy2x/SharpConfig.DLL


System.ServiceModel
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll


SMDiagnostics
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/SMDiagnostics/v4.0_4.0.0.0__b77a5c561934e089/SMDiagnostics.dll


System.ServiceModel.Internals
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel.Internals/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Internals.dll


System.IdentityModel
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3825.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IdentityModel/v4.0_4.0.0.0__b77a5c561934e089/System.IdentityModel.dll


WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll


PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll


PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll


System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3815.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll


Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll


Thanks for pointing it out, fixed in today’s build.

1 Like