New Error

Need help? - Post here and we will find a solution for you.
Post Reply
w9mdb
Old Man
Posts: 172
Joined: 13 Jul 2014, 12:05

New Error

Post by w9mdb » 13 Oct 2019, 21:59

I've seen this error a few times in the last couple of weeks.
I've seen this in my own code using a "foreach" statement on a list and modifying the list inside of it.
You have to use an ".Items" to get a copy of the list to work with.


See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.ArrayList.ArrayListEnumeratorSimple.MoveNext()
at System.Windows.Forms.Application.ExitInternal()
at System.Windows.Forms.Application.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.InvokeMarshaledCallbacks()
at System.Windows.Forms.Control.WndProc(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.4018.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
LogOMUI
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOMUI.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4001.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.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
----------------------------------------
LogOM.Common
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.Common.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.4018.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
----------------------------------------
LogOM.BE
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.BE.DLL
----------------------------------------
RSTControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/RSTControl.DLL
----------------------------------------
SOTAControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/SOTAControl.DLL
----------------------------------------
DXCCControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/DXCCControl.DLL
----------------------------------------
IOTAControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/IOTAControl.DLL
----------------------------------------
LocationsControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LocationsControl.DLL
----------------------------------------
DataGridViewCustom
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/DataGridViewCustom.DLL
----------------------------------------
StatisticControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/StatisticControl.DLL
----------------------------------------
ClusterViewControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/ClusterViewControl.DLL
----------------------------------------
DigitalDisplayControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/DigitalDisplayControl.DLL
----------------------------------------
EXListView
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/EXListView.DLL
----------------------------------------
LogOM.Storage
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.Storage.DLL
----------------------------------------
INIFileParser
Assembly Version: 2.5.2.0
Win32 Version: 2.5.2
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/INIFileParser.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
----------------------------------------
LogOM.BL
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.BL.DLL
----------------------------------------
NLog
Assembly Version: 4.0.0.0
Win32 Version: 4.5.11.8645
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/NLog.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
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
----------------------------------------
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
----------------------------------------
LogOM.TCPServer
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.TCPServer.DLL
----------------------------------------
LogOM.WCF
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.WCF.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Nito.Async.Sockets
Assembly Version: 1.4.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/Nito.Async.Sockets.DLL
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.109.0
Win32 Version: 1.0.109.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/System.Data.SQLite.DLL
----------------------------------------
System.Transactions
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.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
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.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Newtonsoft.Json
Assembly Version: 12.0.0.0
Win32 Version: 12.0.1.22727
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/Newtonsoft.Json.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.8.3752.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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.ServiceModel.Channels
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.Channels/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Channels.dll
----------------------------------------
System.ServiceModel.Web
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.ServiceModel.Web/v4.0_4.0.0.0__31bf3856ad364e35/System.ServiceModel.Web.dll
----------------------------------------
System.Net.Http
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.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Nito.Async
Assembly Version: 1.4.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/Nito.Async.DLL
----------------------------------------
Log4Om.Shared
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/Log4Om.Shared.DLL
----------------------------------------
Messages
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/Messages.DLL
----------------------------------------
Microsoft.GeneratedCode
Assembly Version: 1.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
----------------------------------------
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.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
AwardControl
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/AwardControl.DLL
----------------------------------------
ObjectListView
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/ObjectListView.DLL
----------------------------------------
GMap.NET.Core
Assembly Version: 1.7.5.0
Win32 Version: 1.7.5
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/GMap.NET.Core.DLL
----------------------------------------
GMap.NET.WindowsForms
Assembly Version: 1.7.5.0
Win32 Version: 1.7.5
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/GMap.NET.WindowsForms.DLL
----------------------------------------
LogOM.WinKeyer
Assembly Version: 1.39.0.0
Win32 Version: 1.39.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/LogOM.WinKeyer.DLL
----------------------------------------
NAudio
Assembly Version: 1.8.5.0
Win32 Version: 1.8.5.0
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/NAudio.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 1.0.0.999
Win32 Version: 1.0.0.999
CodeBase: file:///C:/Program%20Files%20(x86)/IW3HMH/Log4OM/ICSharpCode.SharpZipLib.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.

User avatar
IW3HMH
Site Admin
Posts: 2573
Joined: 21 Jan 2013, 14:20
Location: Quarto d'Altino - Venezia (ITA)
Contact:

Re: New Error

Post by IW3HMH » 15 Oct 2019, 12:22

Hi, that seems an uncatched issue that goes up towards the main UI.
In that case you should have something in the application log file (help -> open log file)
I need the error reported here, as it will probably show me the full stack of calls and point to the issue.

Thanks
Daniele
Daniele Pistollato - IW3HMH

Post Reply