What is the information you're passing to perl2exe? I've built many Tk EXEs and haven't run into the problem you're describing. Are you building with the -gui flag? If so, build it again without that flag, that way you can see error messages that would otherwise be completely lost. If it runs correctly as a perl script but doesn't run correctly as an exe, I'd wager that the problem is that there are at least a few modules that aren't being included in the exe file. In your script, you have to expressly use every module that the modules you're already using depend upon. Let me give you a quick example. I was building an EXE with perl2exe that used Math::BigInt. It ran correctly as a regular ol' perl script, but didn't run as an exe file. The problem was that Math::BigInt was using Math::BigInt::Calc, and that's where the exe file was choking. Once I expressly included use Math::BigInt::Calc in my script and rebuilt the exe file, it worked fine. If that doesn't work for you, post exactly what you're passing to perl2exe and I'll try to replicate the problem on my end.
___________________
Kurt

In reply to Re: Building GUI EXEs with perl2exe - no window seen by sifukurt
in thread Building GUI EXEs with perl2exe - no window seen by Pavel

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.