when first starting the application I got an error.
First the application showed a dialog message:
The software was started with the /s <SERIAL_NUMBER> command line argument, but a device with this serial number was not found.
Strange because the startup procedure was the same as always.
Directly after this I got an unhandled exception error:
- Code: Select all
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.OverflowException: Arithmetic operation resulted in an overflow.
at USBClassLibrary.USBClass.GetUSBDevice(UInt32 VID, UInt32 PID, List`1& ListOfDP, Boolean GetCOMPort, Nullable`1 MI)
at Plugins.PluginForm..ctor(UCCNCplugin Pluginmain)
at Plugins.UCCNCplugin.Init_event(Entry UC)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
UCCNC
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/UCCNC.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4341.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.4300.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.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.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
----------------------------------------
OpenTK
Assembly Version: 1.1.0.0
Win32 Version: 1.1.1664.6217
CodeBase: file:///C:/UCCNC/OpenTK.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
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.4341.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.4084.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
----------------------------------------
ୈỲ㬔䙸噤︬玿岱
Assembly Version: 0.0.65535.65535
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/UCCNC.exe
----------------------------------------
OpenTK.GLControl
Assembly Version: 1.1.0.0
Win32 Version: 1.1.1664.6217
CodeBase: file:///C:/UCCNC/OpenTK.GLControl.DLL
----------------------------------------
OpenTK.Compatibility
Assembly Version: 1.1.0.0
Win32 Version: 1.1.1664.6217
CodeBase: file:///C:/UCCNC/OpenTK.Compatibility.DLL
----------------------------------------
ILCalc
Assembly Version: 0.9.7.5
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/UCCNC.exe
----------------------------------------
ory3hwqa
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
AForge.Video.DirectShow
Assembly Version: 2.2.5.0
Win32 Version: 2.2.5.0
CodeBase: file:///C:/UCCNC/AForge.Video.DirectShow.DLL
----------------------------------------
Microsoft.CSharp
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll
----------------------------------------
System.Dynamic
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
j1j3bid1
Assembly Version: 0.0.0.0
Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Plugininterface
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugininterface.DLL
----------------------------------------
AutoBackupProfile
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/UCCNC/Plugins/AutoBackupProfile.dll
----------------------------------------
AutoLevelerCA
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/AutoLevelerCA.dll
----------------------------------------
C76 Fault Reporting
Assembly Version: 1.1.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///C:/UCCNC/Plugins/C76%20Fault%20Reporting.dll
----------------------------------------
Console
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Console.dll
----------------------------------------
Debugger
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Debugger.dll
----------------------------------------
Diagnostics
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Diagnostics.dll
----------------------------------------
FaultSignals
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/UCCNC/Plugins/FaultSignals.dll
----------------------------------------
Laserengrave
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Laserengrave.dll
----------------------------------------
Lubricator
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Lubricator.dll
----------------------------------------
Modbusmaster
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/UCCNC/Plugins/Modbusmaster.dll
----------------------------------------
Pinout
Assembly Version: 2.5.0.0
Win32 Version: 2.5.0.0
CodeBase: file:///C:/UCCNC/Plugins/Pinout.dll
----------------------------------------
Plugintest
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Plugintest.dll
----------------------------------------
Printer3D
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Printer3D.dll
----------------------------------------
Probing
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/UCCNC/Plugins/Probing.dll
----------------------------------------
Profiler
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Profiler.dll
----------------------------------------
Scope
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Scope.dll
----------------------------------------
UCCAM
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/UCCAM.dll
----------------------------------------
UCCNC_OSK
Assembly Version: 1.7.3.0
Win32 Version: 1.7.3.0
CodeBase: file:///C:/UCCNC/Plugins/UCCNC_OSK.dll
----------------------------------------
UCR200Plugin
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/UCR200Plugin.dll
----------------------------------------
UCR201Plugin
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/UCR201Plugin.dll
----------------------------------------
Webcamera
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Webcamera.dll
----------------------------------------
Xbox360controller
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/Xbox360controller.dll
----------------------------------------
XHC-HB04_pendant
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/UCCNC/Plugins/XHC-HB04_pendant.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.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.
Although restarting the application fixed the problem, I still think the error should be handled properly.