Limbic~Region has asked for the wisdom of the Perl Monks concerning the following question:

Question:

When I run my Tk app from the command line:
C:\playground>perl tk_app.pl
It works fine. After I create an .exe using PAR, it no longer works:
C:\playground>pp -o hello.exe tk_app.pl C:\playground>hello ...
It appears to be running. The command line does not return to a prompt. You can see it in the process table. The problem is there is no GUI. Nada.

Answer:

My firewall, ZoneAlarm, was silently preventing things from completely working. After adjusting the permissions for the application inside the firewall, everything worked as expected.

I know I have already answered my own question but I hope it helps someone else and this is the best section I think it fits in.

Cheers - L~R

Replies are listed 'Best First'.
Re: Missing GUI using Tk and Par
by zentara (Cardinal) on May 27, 2006 at 16:17 UTC
Re: Missing GUI using Tk and Par
by Anonymous Monk on May 27, 2006 at 14:36 UTC
    I'm using McAfee Personal Firewall Pro. After I turn off the firewall, the program still doesn't display a GUI. I'm currently trying out other GUI's like Qt, to see if they work.
      If you are using 5.8.7 ActivePerl, this bug report is for you.
      Basically the existent PAR package in ppm does not work. Instead, try using the U. Winnipeg PAR package with this
      ppm>install http://theoryx5.uwinnipeg.ca/ppms/PAR-588.ppd .

      Tobin

      I would give the tkpp interface a try too.

        While that is a valid suggestion, I would go one step further and suggest you use CPAN.pm to install PAR. If no C compiler is availlable, the PAR installer will download a PAR binary for your platform.

        Of course, the binaries from CPAN aren't better than the ones from uwinnipeg per se. They just have the distinct advantage that I built them and so I can be of more help in debugging.

        The best advice, however, comes from the PAR homepage itself. Just use the binary that is confirmed to work on your system as identified by http://par.wikia.com/wiki/PAR_PPM_Compatibility_List

        Hope this helps,
        Steffen

      It has been my experience with McAfee and other security software, that simply turning them off doesn't necessarily make them inactive. Especially with McAfee, you just about have to uninstall it to get it to stop doing things. I believe this is done to prevent malware from inactivating the antivirus software; however, it's a major problem when you're trying to eliminate the antivirus program as a cause of problems.

        Well...turning off the security really decreases its effectiveness.