Author Topic: Unhandled Exception  (Read 13693 times)

0 Members and 1 Guest are viewing this topic.

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Unhandled Exception
« on: July 01, 2008, 11:42:54 AM »
0
Task: Selecting Breakpoint in Debug menu
Description: Added a breakpoint in my script, clicked on the breakpoint in the Debug menu to have it take me to the breakpoint in the script
Error: Object reference not set to an instance of an object

Details:
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.NullReferenceException: Object reference not set to an instance of an object.
   at ៖.៰()
   at ᤬.ᡟᙍ(Object ᙂ, EventArgs ᙄ)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.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:///F:/EasyUO/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:///F:/EasyUO/ScriptUO_v181.exe
----------------------------------------
ScriptUO
    Assembly Version: 1.0.3098.33304
    Win32 Version: 0.0.0.0
    CodeBase: file:///F:/EasyUO/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:///F:/EasyUO/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.



When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

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
« Reply #1 on: July 01, 2008, 11:47:32 AM »
0
Heh, well don't do that.  ;)

Really though, breakpoints aren't turned on in v181 other than what I forgot to turn off. 

I'll be posting the breakpoint-enabled version this evening.  I have flushed most of the issues out of it, so if you can break it then I won't be so flippant!

Thanks for the info, though.
Please read the ScriptUO site RULES
Come play RIFT with me!

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
« Reply #2 on: July 01, 2008, 11:53:03 AM »
0
BTW, XIIx I'll be adding your name into the About.. box for credit for testing.  I do appreciate it.  No cash, however.  ;)
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline 12TimesOverTopic starter

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Unhandled Exception
« Reply #3 on: July 01, 2008, 12:03:33 PM »
0
LOL, no cash necessary :P I told you I'm psyched to be able to participate, I really think this is a great project!

On the other note, had I paid attention I would have already remembered that I shouldn't be messing with the Breakpoints yet.  ::)

I have another item though, I'll put it here since I'm typing but for future reference, as I find these should I start new threads or try to keep them under a single "issues" thread?

This one is more of a user interface issue and may be by design or something to leave alone based on personal taste but I figured I'd mention it, the Syntax Checker is checking commented code. Not usually a big deal, especially now that I figured out where it was seeing that I was short a bracket (lol, 20 minutes!) but it could be an issue, especially in larger projects.

XII
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

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
« Reply #4 on: July 01, 2008, 12:11:13 PM »
0
LOL, no cash necessary :P I told you I'm psyched to be able to participate, I really think this is a great project!

On the other note, had I paid attention I would have already remembered that I shouldn't be messing with the Breakpoints yet.  ::)

I have another item though, I'll put it here since I'm typing but for future reference, as I find these should I start new threads or try to keep them under a single "issues" thread?

This one is more of a user interface issue and may be by design or something to leave alone based on personal taste but I figured I'd mention it, the Syntax Checker is checking commented code. Not usually a big deal, especially now that I figured out where it was seeing that I was short a bracket (lol, 20 minutes!) but it could be an issue, especially in larger projects.

XII

Well it's all good to know about, even things like this.  With this information, I can try and re-create your crash condition on the much-evolved breakpoint code to be sure that all my changes has eradicated this issue.  I didn't directly address it, but I have pretty much re-written most of that code and finally have spent some time polishing it up.  Since I'm so anal with my source code version control, I can call back the version currently released to verify things, then compile the new version.  I don't even keep backups of the executables.

I noticed that a while back how the pre-parser can pickup on commented code.  I forgot to do anything about it.  The script execution unit skips all comments, but there's a fair amount more logic in that section.  The pre-parser is really some pretty simple code.  It just needs a bit more logic.  But thank you for reminding me; I saw that output from your analysis of Spewy's script.  j4bber had a couple things like that as well.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: