<?xml version="1.0" encoding="windows-1252"?>
<node id="1014670" title="Re^4: Perl/Tk window contents disappear when obscured then revealed" created="2013-01-22 09:18:11" updated="2013-01-22 09:18:11">
<type id="11">
note</type>
<author id="1014455">
Another Ed</author>
<data>
<field name="doctext">
&lt;p&gt;Hi choroba, you've lost me a bit here.  thundergnat suggested I run the external program with 'start', which I believe puts the program into the background on Windows.  As I replied to his post, doing this means that Perl doesn't wait for the external program to finish, but steams on regardless.  That is no good to me.  &lt;/p&gt;
&lt;p&gt;It would be nice if there &lt;i&gt;were&lt;/i&gt; some way of making Perl wait.  You say "make its finish an event".  That sounds promising, except that I haven't a clue how to translate that into code.  Surely we're hampered here by the fact that Windows doesn't have a readily accessible process table, so I can't do things like 'system ("ps", ...)'?&lt;/p&gt;
&lt;p&gt;One thing that's occurred to me is that I could try a 'fork' call for the external process, combined with 'waitpid'.  These, I understand, are emulated on Windows by Perl.  It just seems a bit of a sledgehammer to crack this nut, but at the rate this thing is going, I will have to try it.  &lt;/p&gt;Ed</field>
<field name="root_node">
1014459</field>
<field name="parent_node">
1014660</field>
</data>
</node>
