98
« on: June 11, 2008, 02:53:05 PM »
Hi TM,
Just wanted to report an Unhandled Exception error. This happened after clicking on an Error message in the Syntax Checker after deleting line 883 (was an extra line). I see why the error happened, just didn't know if it was something you would want to handle. IE, I changed the code after checking the syntax but without closing the Syntax Checker results window. When I clicked the Error line again after changing the code the value no longer matched since it was trying to take me to what was the last line of code (883) which had been removed.
Did that come out right? :p
Content of Syntax Checker window (I clicked on the imbalanced brace error):
Method count: 55
Command count: 55
*** Pass 1 - Label accounting:
*** Error - Braces not balanced. Imbalanced by: 1
Subroutine labels = 14
Tag labels = 16
0 Warnings(s) encountered.
*** Pass 2 - Execution [SYNTAXCHECK]
1 Error(s) encountered.
Debug Panel Error
Unhandled exception has occurred in your application...<snip>
should be between 0 and 882
Parameter Name: lineNR
Actual Value was 883
Debug Panel Details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentOutOfRangeException: should be between 0 and 882
Parameter name: lineNr
Actual value was 883.
at ICSharpCode.TextEditor.Document.DefaultLineManager.GetLineSegment(Int32 lineNr)
at ICSharpCode.TextEditor.Document.DefaultDocument.GetLineSegment(Int32 line)
at ICSharpCode.TextEditor.Document.TextUtilities.GetLineAsString(IDocument document, Int32 lineNumber)
at ᝰ.គ(Int32 linenumber)
at ᡚᙂ.ᡢᙂ()
at ᡚᙂ.ᡞᙂ()
at ᡚᙂ.ᥙᙊ(Object ᙂ, MouseEventArgs ᙄ)
at System.Windows.Forms.Control.OnMouseClick(MouseEventArgs e)
at System.Windows.Forms.TextBoxBase.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.TextBoxBase.WndProc(Message& m)
at System.Windows.Forms.RichTextBox.WndProc(Message& m)
at អ.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.1433 (REDBITS.050727-1400)
CodeBase: file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ScriptUO
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///M:/EasyUO/ScriptUO_v146.exe
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
zip
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///M:/EasyUO/ScriptUO_v146.exe
----------------------------------------
ScriptUO
Assembly Version: 1.0.3057.43162
Win32 Version: 0.0.0.0
CodeBase: file:///M:/EasyUO/ScriptUO_v146.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.1433 (REDBITS.050727-1400)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
ICSharpCode.TextEditor
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///M:/EasyUO/ScriptUO_v146.exe
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.1433 (REDBITS.050727-1400)
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.