Sun Jun 05 06:32:18 2011: Request 68659 was acted upon.
Transaction: Ticket created by noreply
Queue: Wx
Subject: Wx::App->new should warn/carp if called more than once
Broken in: 0.99
Severity: Wishlist
Owner: Nobody
Requestors:
Status: new
Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=68659 >
Like this
$ perl -Mblib -MWx -le " Wx::SimpleApp->new for 1 .. 6 "
Wx::App->new called more than once, returning reference to existing app,
there can only be one wxApp at -e line 1
Wx::App->new called more than once, returning reference to existing app,
there can only be one wxApp at -e line 1
Wx::App->new called more than once, returning reference to existing app,
there can only be one wxApp at -e line 1
Wx::App->new called more than once, returning reference to existing app,
there can only be one wxApp at -e line 1
Wx::App->new called more than once, returning reference to existing app,
there can only be one wxApp at -e line 1
Its a simple edit to lib/Wx/App.pm
$this = $Wx::wxTheApp;
Carp::carp("Wx::App->new called more than once, returning reference
to existing app, there can only be one wxApp");