From: Foo JH <jhf...@ex...> - 2006-12-14 04:16:50
|
Hey Mattia, Gimme a min. I'll write a working version for you to see... Mattia Barbon <mat...@li...> wrote: > Hi, > > >> I just noticed that within subclassed wxPerl objects (eg. Wx::Panel), if >> 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 ) = @_; > > die "Some message"; > } > > or something sdimilar? > > Thanks! > Mattia > > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > wxperl-users mailing list > wxp...@li... > https://lists.sourceforge.net/lists/listinfo/wxperl-users > |