Fri Sep 23 08:59:23 2011: Request 71177 was acted upon. Transaction: Correspondence added by steve.cook...@sca-uk.com Queue: Wx Subject: RE: [rt.cpan.org #71177] segv on passing undef Broken in: (no value) Severity: (no value) Owner: Nobody Requestors: use...@zip.com.au Status: new Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=71177 >
> -----Original Message----- > From: Kevin Ryde via RT [mailto:bug...@rt.cpan.org] > With recent debian i386 wx 2.8 and wxperl 0.9901 I mistakenly passed > undef to the AboutDialogInfo SetIcon(), per foo.pl below, and got a > segv. I expect it's "don't do that", but it'd be good if it was an > error instead of a segv to avoid trouble. Hi Kevin, I get the same under Windows. Don't you think it's a wxWidgets problem and not a wxPerl binding problem? The only strange thing is it crashes at the actual call: $info->SetIcon(undef); >>>crash<<< If you change to: $info->SetIcon(0); It steps through the call to Wx:: sub END { UnsetConstants() if defined &UnsetConstants; } It may be worth posting on wx-us...@googlegroups.com. What do others think? Regards Steve