ScriptUO
Scripting Resources & Utilities => ScriptUO Application => Bug discussion => Topic started by: 12TimesOver 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.
-
Sorry about that. I know what that error is; that's the coloration error that can cause the editor to crash. I do have that fixed in my version, but since nobody has run into it until now, I didn't publish a new version. Now I will! Hope you didn't loose much.
OH, that's a different one. That's an easy one to fix. Darn that range checking, you do 99% of them, but there's always one sneaky one to get through. It's still a problem with the editor control, so I have to do the range checking before I hand over a number to the editor functions.
-
By the way XII, that's the perfect information for me to debug the problem quickly. Thank you for capturing it!
-
Hey no problem at all, I figured my career-related expertise could come in handy for something really important :p
TBH, I'm psyched to be part of this project so I'm happy to break it and tell you how I did it whenever I can, hehe.
-
I played with it alot today editing and trying out various items on some of my scripts and haven't broke it yet but I know I will eventually :)
-
Hey no problem at all, I figured my career-related expertise could come in handy for something really important :p
TBH, I'm psyched to be part of this project so I'm happy to break it and tell you how I did it whenever I can, hehe.
Well I'm happy to have ya'll playing with it. It's been fun for me to write and a very therapeutic diversion from all the daily crap. heh
-
Ok, I fixed this little bug. It's easy to handle when you are looking for it. I will probably be posting a revision to his program this weekend sometime. I want to address a couple other crash issues I've found, but I'm thinking it's nearly ready for public consumption.
-
Looking forward to the next run; totally digging this project!