in reply to Re: Program made with perl2exe locks up
in thread Program made with perl2exe locks up

I think I mentioned even the perl2exe sample.pl program fails when the EXE is run, but here is sample.pl.
#!/usr/bin/perl

#perl2exe_info CompanyName=My Company
#perl2exe_info FileDescription=My File Description
#perl2exe_info FileVersion=1.2.3.4
#perl2exe_info InternalName=My International Name
#perl2exe_info LegalCopyright=My Legal Copyright
#perl2exe_info LegalTrademarks=My Legal Trademarks
#perl2exe_info OriginalFilename=My Original Filename
#perl2exe_info ProductName=My Product Name
#perl2exe_info ProductVersion=My Product Version
#perl2exe_info Comment=My Comment

print "This is sample.pl\n";
print "ARGV = ", join(" ", @ARGV), "\n";

print "Script path \$0 = $0\n";
print "Exe path \$^X = $^X\n";
print "Perl verison \$] = $]\n";

print "\@INC=\n   ", join("\n   ", @INC), "\n";
sleep (1);
The real script I'm trying to compile is actually quite large.
  • Comment on Re^2: Program made with perl2exe locks up

Replies are listed 'Best First'.
Re^3: Program made with perl2exe locks up
by james28909 (Deacon) on Jan 03, 2016 at 23:00 UTC
    Windows 8 ;l Maybe try running it as administrator. And also maybe try using compatibility mode in the executables properties. Personally I am not sure what the problem may be, but you could try to use perlapp from the active state website to see if it will work that way. It could just be your Perl2Exe that is messed up.
    The Perl Dev Kit has a 30 day trial. Why dont you download and install it real quick, then run "perlapp" from console and try compiling it that way.
      Also, i went ahead and downloaded perl2exe app and packed the sample.pl/tksamp into a sample.exe/tksamp.exe, and it behaved appropriately. Maybe you are having a permissions issue?