# from Gabor Szabo
# on Monday 09 March 2009 23:19:
>> I use a $SIG{__DIE__} as a catch-all with a dialog box. The trouble
>> with doing eval only at the menu-click time is that any sort of
>> persistent objects can still crash you when their are events are
>> handled.
>
>Interesting but how do you let your application keep running after
> that? AFAIK a SIG{__DIE__} only catches the exception message but the
> exception keeps traveling up the calltree.
You have to restart the MainLoop in a sub to which you goto(). There
might be a better way, but I haven't found it.
http://svn.scratchcomputing.com/FreeTUIT/trunk/lib/FreeTUIT/Wx/app.pm
I think the original MainLoop() may have left at that point. At least,
I hope it did.
--Eric
--
We who cut mere stones must always be envisioning cathedrals.
--Quarry worker's creed
---------------------------------------------------
http://scratchcomputing.com
---------------------------------------------------