G'Day Dennis,
The dreaded mscorlib "failed to compare two elements" error is back when I open Tools, Setup, Misc ham setup. Win7 Pro 64bit, LOGic 6.0.61.
A lot has happened on my system - again, mostly with serial ports. It is up to date with MS Update.
It is hard to know where to start, so I started with a clean up of the .NET versions on my system with Microsoft's Tool referenced
here and a clean out of all the serial ports.
I cleaned All .Net versions, leaving 4.5 and 4.5.1 only, followed a "repair" of these remaining installed versions. Some software wanted .Net version 4.0, so I installed .Net 4.0 from Microsoft Downloads. A test of LOGic was aborted by the system after causing "buffer overruns". I re-installed Logic 9 "over the top" from CD, and reapplied the 9.0.61 update.
All to get the result - except that the error messages now include more detail.
The error below is from the Tools, Advanced, Serial Port status tool. Does any of this give you any clues I might find useful in fixing my Windows system? ... what class is not registered?. Logic is running fine, apart from my inability to get at Tools, Setup, Misc ham setup
Peter VK4IU
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Convert.ToInt16(String value)
at PDA.ComPort.PortUsersDisplayForm.<PortUsersDisplayForm_Load>b__0(PortUser i1, PortUser i2)
at System.Array.FunctorComparer`1.Compare(T x, T y)
at System.Collections.Generic.ArraySortHelper`1.SwapIfGreaterWithItems(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
at System.Collections.Generic.ArraySortHelper`1.QuickSort(T[] keys, Int32 left, Int32 right, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
at System.Collections.Generic.List`1.Sort(Comparison`1 comparison)
at PDA.ComPort.PortUsersDisplayForm.PortUsersDisplayForm_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.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
PDA.DotNetLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.9
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/PDA.DotNetLoader.DLL
PDA.Encryption2
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.50
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/pda.Encryption2.dll
PDA.LOGic.WhereItIs
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.58
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/pda.logic.whereitis.dll
PDA.ComPort
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.102
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/pda.comport.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
PDA.InteropComPortControls
Assembly Version: 1.0.0.0
Win32 Version:
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/PDA.InteropComPortControls.DLL
PDA.ComPortControls
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.52
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/PDA.ComPortControls.DLL
acclIconComboBox
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.54
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/acclIconComboBox.DLL
PDA.ToolTip
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.44
CodeBase: file:///C:/Program%20Files%20(x86)/LOGic/assembly/PDA.ToolTip.DLL
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Peter VK4IU
You can help by posting images of
any errors and including your
Logic version.