Re: [Ironruby-core] Handling runtime errors in embedded applications

2010-01-01 Thread Jim Deville
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

Re: [Ironruby-core] Handling runtime errors in embedded applications

2010-01-01 Thread James Leskovar
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

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-29 Thread Jimmy Schementi
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

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-29 Thread James Leskovar
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

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-29 Thread Jimmy Schementi
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 &

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-29 Thread Tomas Matousek
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

Re: [Ironruby-core] Handling runtime errors in embedded applications

2009-12-28 Thread Jimmy Schementi
__ 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

[Ironruby-core] Handling runtime errors in embedded applications

2009-12-26 Thread James Leskovar
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