Subject: | calling methods on a destroyed object causes fault/crash, could die instead |
calling methods on a destroyed object causes fault/crash
It would be nice if it died instead
{
use Wx 0.99 ;
my $app = Wx::SimpleApp->new;
my $frame = Wx::Frame->new(undef,-1,"", [21,21+ rand(5)] );
$frame->Show(1);
$app->SetTopWindow($frame);
$app->MainLoop;
$frame->Show(1); # crashes
}
__END__
Faulting application perl.exe, version 0.0.0.0, faulting module wx.dll,
version 0.0.0.0, fault address 0x0017e4c5.