Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

wxHtmlWindow causes exe to crash after PAR::PACKER

by wongie (Novice)
on Nov 28, 2014 at 13:23 UTC ( [id://1108648]=perlquestion: print w/replies, xml ) Need Help??

wongie has asked for the wisdom of the Perl Monks concerning the following question:

With "use wxHtmlWindow", my Perl GUI works under Eclipse but crashes when running the executable after my design has been through PAR::PACKER. I use PAR::Packer 1.023. Any idea what is going on here? I guess some window specific files are missing when going through the PAR::PACKER process. Without the "use wxHtmlWindow", the executable works ok.

  • Comment on wxHtmlWindow causes exe to crash after PAR::PACKER

Replies are listed 'Best First'.
Re: wxHtmlWindow causes exe to crash after PAR::PACKER
by Anonymous Monk on Nov 28, 2014 at 19:25 UTC
Re: wxHtmlWindow causes exe to crash after PAR::PACKER
by ww (Archbishop) on Nov 28, 2014 at 13:30 UTC
    Details please. What's your packing routine look like?

    ++$anecdote ne $data


      I created a special Perl module to demonstrate this problem. If you comment out "use wxHtmlWindow" then the PAR::PACKER works otherwise no.

      #!c:/perl/bin/perl use strict; use warnings; package MyApp; use strict; use warnings; use base 'Wx::App'; sub OnInit { my $frame = MyFrame->new; $frame->Show(1); return 1; } package MyFrame; use Wx qw(:everything); use base 'Wx::Frame'; use wxHtmlWindow; ############ the culprit sub new { my ($class) = @_; my $self = $class->SUPER::new( undef, -1, 'TextEntryDialog.pl', wxDefaultPosition, wxDefaultSize, ); my $statusBar = Wx::StatusBar->new($self, wxID_ANY, wxST_SIZEGRIP) +; $self->SetStatusBar($statusBar); my @widths = (250, 100, -1); $statusBar->SetFieldsCount($#widths+1); $statusBar->SetStatusWidths(@widths); $statusBar->SetStatusText("Ready", 0); myStdDialogs($self); return $self; } sub myStdDialogs { my ( $self ) = @_; my $getTextFromUser = Wx::GetTextFromUser( "This is some text, actually a lot of text\nEven two +rows of text", "Enter a String: ", wxOK | wxCANCEL, $self); # Wx::MessageBox("$getTextFromUser", "Entered String", wxOK | wxICON +_INFORMATION, $self); } # package main; # # MyApp->new->MainLoop; or my $app = MyApp->new; $app->MainLoop;

      I use the following command to create the executable:

      pp -v 3 -g -l C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3_4\lib\libgcc_s_sjlj-1.dll -l C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3_4\lib\libstdc++-6.dll -l C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3_4\lib\wxbase28u_gcc_wxPerl.dll -l C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3_4\lib\wxmsw28u_adv_gcc_wxPerl.dll -l C:\Perl\site\lib\Alien\wxWidgets\msw_2_8_12_uni_gcc_3_4\lib\wxmsw28u_core_gcc_wxPerl.dll -o test.exe -r TextEntryDialog.pl -L test.log

        If you comment out "use wxHtmlWindow" then the PAR::PACKER works otherwise no.

        So what?

        There is no perl module called wxHtmlWindow, did you create one?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1108648]
Approved by kevbot
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 05:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found