ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pdk
pdk
Re: compiled App doesn't work
by Jenda Krynicky other posts by this author
Feb 28 2008 6:13AM messages near this date
compiled App doesn't work | RE: compiled App doesn't work
From: "Oeschey, Lars (I/EK-142, extern)" 
<extern.Lars.Oeschey@[...].DE> 
>  I have an application that works fine when run from the command prompt
>  with perl interpreter, though when I compile it it doesn't.
>  
>  Versions: PerlApp 7.0.0 build 277058
>  perl 5.8.8 build 817
>  
>  The same app compiled fine in the last version, so the only thing
>  changed is the app itself. I get a hint when I try to run it from the
>  graphical PerlApp GUI, it tries to call a Error routine that I have in
>  my app, but without parameter, so it fails.
>  
>  this is the commandline PerlApp generates:
>  perlapp --norunlib --gui --info "CompanyName=Audi AG / Epos
>  CAT;FileDescription=Programm zum Labeldruck im Wareneingang
>  TE;FileVersion=0.46;InternalName=Labelprint;LegalCopyright=Lars
>  Oeschey;OriginalFilename=Labelprint;ProductName=Labelprint;ProductVersio
>  n=0.46" --exe labelprint_0.46.exe labelprint_0.46.pl
>  
>  This is the error I get:
>  
>  Can't call method "messageBox" on an undefined value at
>  labelprint_0.46.pl line 222.
>  
>  And this is line 222:
>  
>  sub Error {
>  	$top->messageBox(-icon=>"error", -message=>"@_",
>  -title=>"Fehler!", -type=>"OK");
>  	print LOG "ErrorPopUp: @_\n";
>  }

Apparently the $top variable does not contain anything. Switch the 
commands in the sub Error{} and look into the logfile. Hopefully 
it'll give you some hints.

If not have a look at the code where you instantiate the object in 
$top, test whether it was created and try to log why.

Jenda
===== Jenda@[...].cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
	-- Terry Pratchett in Sourcery

_______________________________________________
PDK mailing list
PDK@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Lars Oeschey
Jenda Krynicky
Lars Oeschey
Bill Luebkert
Lars Oeschey

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved