Author Topic: Unhandled Exception with Auto Indent  (Read 11240 times)

0 Members and 1 Guest are viewing this topic.

Freddy

  • Guest
Unhandled Exception with Auto Indent
« on: July 02, 2008, 05:35:34 AM »
0
"Value of 104 is not valid for 'Value' should be between 'minimum' and 'maximum'
Parameter name: Value"

error output:
Code: [Select]
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentOutOfRangeException: Value of '104' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum'.
Parameter name: Value
   at System.Windows.Forms.ProgressBar.set_Value(Int32 value)
   at System.Windows.Forms.ToolStripProgressBar.set_Value(Int32 value)
   at ᡎᙂ.᡾ᙂ()
   at ᢬ᙂ.᡾ᙂ()
   at ᤬.᡾ᙍ(Object ᙂ, EventArgs ᙄ)
   at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.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:///C:/Documents%20and%20Settings/Pamela%20Jo/Desktop/ScriptUO_v181.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:///C:/Documents%20and%20Settings/Pamela%20Jo/Desktop/ScriptUO_v181.exe
----------------------------------------
ScriptUO
    Assembly Version: 1.0.3098.33304
    Win32 Version: 0.0.0.0
    CodeBase: file:///C:/Documents%20and%20Settings/Pamela%20Jo/Desktop/ScriptUO_v181.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:///C:/Documents%20and%20Settings/Pamela%20Jo/Desktop/ScriptUO_v181.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.


Script that I tested it with:
Code: [Select]
;==================================
; Script Name: WinUO Library Donater
; Author: Freddy
; Version: 1.0 ALPHA
; Client Tested with: 5. Something
; EUO version tested with: 1.5 (Build 0066)
; Shard OSI
; Revision Date: 7-02-2008
; Public Release: 7-02-2008
; Purpose: This script will buy items from vendors and donate them, or craft them and donate them.
;==================================
;=============================Runebook Setup==========================================================
set %bank_book WCAQXQD ;Item id of your bank runebook.   
set %bank_start 2 ;The number where your bank rune starts in your runebook.                           
set %bank_max 2  ;The number where your bank rune ends in your runebook.                             
                                           
set %library_book HZZPXQD ;Item id of library runebook.
set %library_start 8 ;The number where your dungeon rune starts in your runebook.                         
set %library_max 10 ;The number where your dungeon rune ends in your runebook.           

;set %house_book XXXXXXX ;The id of your house runebook. Only uncomment if you want to use your house as a secure instead of the bank.
;set %house_start 2 ;The number where your house rune starts in your runebook.                           
;set %house_max 2  ;The number where your house rune ends in your runebook.                                              |
;======================================================================================================

Offline TrailMyx

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: Unhandled Exception with Auto Indent
« Reply #1 on: July 02, 2008, 12:18:14 PM »
0
Were you doing a "Auto Indent Script"?  If so, the toolstrip item progress bar has a nasty tendency to raise an exception when you send it a number above 100%.  Sometimes the progress math works out to be a bit larger than 100%.  One would hope it would just clamp it, but NOO, you have to do that yourself.  Anyhow, I fixed that one right after I released 181.

Frankly, there was a time with the old editor where you could actually watch the progress of an Auto Indent Script function, but now with the new text control, the same work happens so fast that I really don't need to report any progress.  I love side effects of a positive nature.  ;)
« Last Edit: July 02, 2008, 12:48:53 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: