Hello wise monks,

I've written a perl/tk application. When the user presses a button in the GUI then a function is called which executes an external batch file full of commands.

I packed this application with the pp program.

pp -a "./AddFiles" -o my_app.exe my_app.pl"

If I do it like this the packed program my_app.exe is working fine. But if I add the --gui option the commands in the external batch file are not working correctly.

pp --gui -a "./AddFiles" -o my_app.exe my_app.pl"

I tried to capture stdout and stderr of the external batch file by using Capture::Tiny. But they were empty. I put a lot of prints into the code and wrote it to an external file to find the error. But that did not help me.

So my question is to to you. Is there a way to debug a gui packed application to find out why it does not work when the gui-option is used?

What do you suggest for a way to find the error?

Thank you alot

Dirk


In reply to Par Packer - gui option problems by Dirk80

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.