nruby-core] Handling runtime errors in embedded applications
Hmm, UnhandledExceptionEventArgs seems to only have two properties,
ExceptionObject and IsTerminating, both of which are read-only. After a
bit of investigation, there is another type of unhandled-exception
handler, set
Hmm, UnhandledExceptionEventArgs seems to only have two properties,
ExceptionObject and IsTerminating, both of which are read-only. After a
bit of investigation, there is another type of unhandled-exception
handler, set with Application.ThreadException, which can prevent
application termination. Ho
ork in the meantime.
~js
From: ironruby-core-boun...@rubyforge.org [ironruby-core-boun...@rubyforge.org]
on behalf of James Leskovar [li...@ruby-forum.com]
Sent: Tuesday, December 29, 2009 4:26 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] H
Unfortunantly, the problem with setting the unhandled exception event is
that there's no way to 'recover' from the exception; the application
terminates immediately after the event. Additionally, this method
doesn't seem to work for exceptions within threads:
class Program
{
static void
t;
> Does that answer all your questions?
>
> ~Jimmy
> ____
> From: ironruby-core-boun...@rubyforge.org [ironruby-core-
> boun...@rubyforge.org] on behalf of James Leskovar [li...@ruby-
> forum.com]
> Sent: Saturday, December 26, 2009 3:12 AM
&
Sent: Tuesday, December 29, 2009 3:27 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Handling runtime errors in embedded applications
James,
To be up-front, your requirements are all possible with IronRuby.
For syntax errors, you're doing the right thing by
__
From: ironruby-core-boun...@rubyforge.org [ironruby-core-boun...@rubyforge.org]
on behalf of James Leskovar [li...@ruby-forum.com]
Sent: Saturday, December 26, 2009 3:12 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Handling runtime errors in embedded applications
Hi there,
So m
Hi there,
So my application is basically a lightweight IDE for IronRuby, built in
C#, with the idea that users should be able to quickly edit and
prototype ruby scripts. Part of the application's requirements is to
have the ability to handle compilation/syntax errors and runtime
exceptions, as wel