When I pack a Tk script into an .exe in Windows 10 using Strawberryperl 5.28 and I run it, I can see in task manager that TWO instances of my application are running. They have the same name but different PID and different memory usage: A) is very small; B) is bigger. Why this? I noticed this because I was trying to kill my application from outside Perl (to perform an update which requires my application to be killed), and I could kill it. I noticed that the external updater kills only A), not B). The GUI still is shown and seems to work perfectly, even without A). I need to manually kill B) to kill (both) instances. Now my questions:

Is this normal?

It is possible prevent it (when I packed with PerlApp I had only once instance)?


In reply to PAR pp Windows 2 instances by IB2017

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.