by Anonymous user, 1235255559|%e %b %Y
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
**** Exception Text ****
System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at enhsimgui.MainForm.readConfigFile(SByte* filename)
at enhsimgui.MainForm.MainForm_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.3082 (QFE.050727-3000)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
enhsimgui
Assembly Version: 1.0.3314.31736
Win32 Version:
CodeBase: file:///C:/Documents%20and%20Settings/My%20Documents/WoW/Shaman/EnhSim1.5.8/enhsimgui.exe
msvcm90
Assembly Version: 9.0.21022.8
Win32 Version: 9.00.21022.8
CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.21022.8_x-ww_d08d0375/msvcm90.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
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.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.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.
Happens by running enhsimgui in version 1.5.8
Check your config file which is opened on startup. There is something wrong with it. Might be an illegal value, missing config option or just a missing value from the option.
Tukez the most common cause of this error is having a "blank" line with a single space on it, the sim seems to be treating any non empty line as needing parsed and it collapses and dies when it doesn't understand the contents. It should really be any non-whitespaced line and ofc if it could error out with a "Unable to understand config file. Bad config entry "xxxxxx" at line yyy", that would be preferable.
I detected the single space throwing this error when writing the Rawr to EnhSim module.
I noticed this when I tried to load an old config file.
Also note that this happens consistently on app startup (it seems to remember the file you tried to load last) and if you're in the habit of clicking "Quit" on these dialogs, you're out of luck and the program won't open at all once you get into this situation
Workarounds:
Rename or fix the bad file
or
click Continue upon seeing the dialog (program seems to work fine)
Ideally, the program should not "crash" upon bad user input.
I added some error checking. The GUI shouldn't crash so easily.
Post preview:
Close preview