Re: [Fxruby-users] Re: catching exceptions in event handlers
Status: Inactive
Brought to you by:
lyle
From: Emmanuel T. <emm...@wa...> - 2003-07-23 14:06:39
|
Hello, > At 15:40 +0100 23 Jul 2003, Emmanuel Touzery <emm...@wa...> wrote: > > C:\programs\glossary\test>ruby test.rb > > test.rb:38:in `onCmdOpen': undefined local variable or method `pouf' for > > #<Gloss > > aryMainWindow:0x52d3c78> (NameError) > > from test.rb:61:in `run' > > from test.rb:61 > > NameError exceptions don't get caught by a bare rescue since that's > equivalent to "rescue StandardError". If you truly want to catch all > exceptions you need to use "rescue Exception". thank you! this was my problem! now how to display a dialog box at this stage, as Lyle remarked.. is there a nicer solution than to create a brand new FXApp object? sorry to ask so much, but i don't see examples to base myself from on this... emmanuel |