From: Mattia B. \<mattia\.barbon\@libero\.it\> <mat...@li...> - 2006-12-13 08:29:01
|
Hi, > I just noticed that within subclassed wxPerl objects (eg. Wx::Panel), i= f > a die() were to be executed, it will not show, even on the command-line= > console. I eval-ed the object that died, and I got this string as $@: > > Died at MyPanel.pm line 40. > > A bit cryptic, especially when I called die() with a message (eg. > die('file not found') ). How can I retrive the die() message? I never noticed this behaviour... could you tell me more about your Perl version, platform and wxWidgets version? Are you just doing: EVT_CLICK( ... \&OnClick ) in the constructor, and then sub OnClick { my( $self, $event ) =3D @_; die "Some message"; } or something sdimilar? Thanks! Mattia =0A |