On Mon, Mar 9, 2009 at 8:44 PM, Eric Wilhelm <[email protected]> wrote:
> # from Gabor Szabo
> # on Monday 09 March 2009 10:10:
>
>>> On a completely different note: Why eval {} inside an event sub?
>>
>>I think it is because these are methods in the plugins and we
>>try to avoid a crash caused by a plug-in.
>
> Sure. That seems like it would fail a little bit too silently though.
>
> 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.
Gabor