[Padre-dev] Edit -> Preferences crashes 0.16

"José Diaz Seng" josediazseng at gmx.de
Tue Nov 11 12:21:43 PST 2008


Hi,
this is strange, at home (Windows XP Home SP3, Strawberry Perl 5.10.0.3) I still run into the problem that every instantiation attempt of a Padre::Wx::Dialog object

Padre::Wx::Dialog->new(...)

crashes the program, e.g. when selecting View->Goto Bookmark from the menu, I get the error 

Can't locate object method "new" via package "Padre::Wx::Dialog" 
at C:/strawberry/perl/site/lib/Padre/Wx/Dialog/Bookmarks.pm line 52.

I tried to find out why and started Padre from the debugger using the following session padre.txt:

b compile Padre::Wx::Dialog::Bookmarks::dialog
Padre->new
(Padre->inst)->run
b 52
c

Running the debugger with this session and clicking on the mentioned menu item yields:
> perl -MPadre -de0
  DB<1> source C:\padre.txt
...
  DB<<5>> c
Padre::Wx::Dialog::Bookmarks::dialog(C:/strawberry/perl/site/lib/Padre/Wx/Dialog
/Bookmarks.pm:52):
52:             my $dialog = Padre::Wx::Dialog->new(
53:                     parent   => $main,
54:                     title    => $title,
55:                     layout   => $layout,
56:                     width    => [300, 50],
57:             );

Now all the parameters to the constructor seem o.k. and a listing of the loaded modules includes 
Padre::Wx::Dialog:

...
  DB<<7>> M
...
'Padre/Wx/App.pm' => '0.16 from C:/strawberry/perl/site/lib/Padre/Wx/App.pm'
'Padre/Wx/Dialog.pm' => '0.16 from C:/strawberry/perl/site/lib/Padre/Wx/Dialog.p
m'
'Padre/Wx/Dialog/Bookmarks.pm' => '0.16 from C:/strawberry/perl/site/lib/Padre/W
x/Dialog/Bookmarks.pm'
...

So I am really at a loss of explaining the behaviour.

-- 





More information about the Padre-dev mailing list