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

**URL:** https://discussion.mcebuddy2x.com/t/unhandled-exception-adding-correction-in-in-expert-settings-for-new-conversion-task/3069
**Category:** Bugs
**Created:** [September 5, 2019, 2:38pm UTC](https://discussion.mcebuddy2x.com/t/unhandled-exception-adding-correction-in-in-expert-settings-for-new-conversion-task/3069 "2019-09-05T14:38:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mike808](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/m/c5a1d2/32.png) [@mike808](https://discussion.mcebuddy2x.com/u/mike808)
#### Post date: [September 5, 2019, 2:38pm UTC](https://discussion.mcebuddy2x.com/t/unhandled-exception-adding-correction-in-in-expert-settings-for-new-conversion-task/3069/1 "2019-09-05T14:38:24Z")

</div>

**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

* * *

---

<div class="post-metadata">

### Author: ![Goose](https://discussion.mcebuddy2x.com/letter_avatar_proxy/v4/letter/g/5f9b8f/32.png) [@Goose](https://discussion.mcebuddy2x.com/u/Goose)
#### Post date: [September 5, 2019, 7:43pm UTC](https://discussion.mcebuddy2x.com/t/unhandled-exception-adding-correction-in-in-expert-settings-for-new-conversion-task/3069/2 "2019-09-05T19:43:24Z")

</div>

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