When "Single instance mode" is enabled and I try to open EmuHawk.exe a second time, two things happen:
1. The one already running gives an "Index was out of range" exception. I can click Continue and still works OK. EDIT: Here are the details.
************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.ThrowHelper.ThrowArgumentOutOfRangeException()
at System.SZArrayHelper.get_Item[T](Int32 index)
at BizHawk.Client.EmuHawk.Program.SingleInstanceController.this_StartupNextInstance(Object sender, StartupNextInstanceEventArgs e)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnStartupNextInstance(StartupNextInstanceEventArgs eventArgs)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnStartupNextInstanceMarshallingAdaptor(Object args)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
EmuHawk
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/EmuHawk.exe
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34238 built by: FX452RTMGDR
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.0.30319.18408 built by: FX451RTMGREL
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.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
BizHawk.Client.Common
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Client.Common.dll
----------------------------------------
BizHawk.Emulation.Common
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Emulation.Common.dll
----------------------------------------
BizHawk.Emulation.DiscSystem
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Emulation.DiscSystem.dll
----------------------------------------
BizHawk.Common
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Common.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
SlimDX
Assembly Version: 4.0.10.43
Win32 Version:
CodeBase: file:///G:/Emulators/Bizhawk/dll/SlimDX.dll
----------------------------------------
BizHawk.Bizware.BizwareGL.OpenTK
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Bizware.BizwareGL.OpenTK.dll
----------------------------------------
BizHawk.Bizware.BizwareGL
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///G:/Emulators/Bizhawk/dll/BizHawk.Bizware.BizwareGL.dll
----------------------------------------
OpenTK
Assembly Version: 1.1.0.0
Win32 Version: 1.1.1475.5656
CodeBase: file:///G:/Emulators/Bizhawk/dll/OpenTK.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 11.0.50938.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
BizHawk.Emulation.Cores
Assembly Version: 1.9.1.8272
Win32 Version: 1.9.1.8272
CodeBase: file:///G:/Emulators/Bizhawk/dll/Bizhawk.Emulation.Cores.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 6.0.0.0
Win32 Version: 6.0.3.17312
CodeBase: file:///G:/Emulators/Bizhawk/dll/Newtonsoft.Json.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.ComponentModel.DataAnnotations
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
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.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34234 built by: FX452RTMGDR
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.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
EMU7800
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///G:/Emulators/Bizhawk/dll/EMU7800.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.34245 built by: FX452RTMGDR
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
OpenTK.GLControl
Assembly Version: 1.1.0.0
Win32 Version: 1.1.1475.5656
CodeBase: file:///G:/Emulators/Bizhawk/dll/OpenTK.GLControl.dll
----------------------------------------
2. The new instance crashes.
The details of the "BizHawk.Client.EmuHawk has stopped working" message are:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: emuhawk.exe
Problem Signature 02: 1.9.1.8272
Problem Signature 03: 54793af0
Problem Signature 04: EmuHawk
Problem Signature 05: 1.9.1.8272
Problem Signature 06: 54793af0
Problem Signature 07: 6a4
Problem Signature 08: 0
Problem Signature 09: System.NullReferenceException
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1032
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
The same crash happens when the emulator is running and I try to open a rom from the command line. This time the instance that's already running does NOT give an exception and the rom loads normally in it. But the new instance still crashes.
So my real problem is that if I open roms from the command line, it works, but I end up with as many "BizHawk.Client.EmuHawk has stopped working" messages.
OS is Win7 64bit. This happens in 1.9.0 and 1.9.1. I don't know about earlier versions.