ShowDesktopOneMonitor
ShowDesktopOneMonitor copied to clipboard
Crashing exception error
The program still works fine on my end for 99% of the time for the last few years, but occassionally it runs into this error. Error log reproduced in full below.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ShowDesktopOneMonitor.MainAppContext.OnShowDesktopDirect(Int32 screenIdx) in C:\Users\Valerio\Desktop\Repos\ShowDesktopOneMonitor\ShowDesktopOneMonitor\MainAppContext.cs:line 55
at ShowDesktopOneMonitor.MainAppContext.OnShowDesktopKeyComb() in C:\Users\Valerio\Desktop\Repos\ShowDesktopOneMonitor\ShowDesktopOneMonitor\MainAppContext.cs:line 51
at ShowDesktopOneMonitor.MainAppContext.HotKeyManager_HotKeyPressed(Object sender, HotKeyEventArgs e) in C:\Users\Valerio\Desktop\Repos\ShowDesktopOneMonitor\ShowDesktopOneMonitor\MainAppContext.cs:line 41
at ShowDesktopOneMonitor.HotKeyManager.OnHotKeyPressed(HotKeyEventArgs e) in C:\Users\Valerio\Desktop\Repos\ShowDesktopOneMonitor\ShowDesktopOneMonitor\HotKeyManager.cs:line 42
at ShowDesktopOneMonitor.HotKeyManager.MessageWindow.WndProc(Message& m) in C:\Users\Valerio\Desktop\Repos\ShowDesktopOneMonitor\ShowDesktopOneMonitor\HotKeyManager.cs:line 74
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: 4.0.0.0
Win32 Version: 4.8.9310.0 built by: NET481REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
ShowDesktopOneMonitor
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Ricing/ShowDesktopOneMonitor/ShowDesktopOneMonitor.exe
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9251.0 built by: NET481REL1LAST_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.9320.0 built by: NET481REL1LAST_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.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.9037.0 built by: NET481REL1
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.9316.0 built by: NET481REL1LAST_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.9037.0 built by: NET481REL1
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.9037.0 built by: NET481REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.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.