I've got a weird XP/PERL/WIN32/OLE interaction thing going and I desparately need some help.

Let me explain... I've got a TK app that (amongst other things) prints text and word files to PDF by OLEing Word to print the file to the PDF printer.

The initial PERL script uses Win32::Process:Create to invoke the DOS command file and then waits until the process termintates. Everything works just fine, except, once Adobe Distiller runs, only the first document printed pops up in Acrobat (my printer options are set to show the PDF rsults after every print) all subsequent files printed never appear. If I look on my Task Manager, I see several instances of "acrobat.exe" running (1 for every file I've printed) but only 1 Acrobat window with the first file - the Acrobat app isn't hung, it responds just fine, but it's only got 1 file in it.

The problem is: only the first file printed pops up in Acrobat - until the original PERL script is exitted - then all the remaining files suddenly pop up in the Acrobat window - as if they've been waiting all this time.

Does anybody have any idea what could cause this? The processes created are all exitting normally. What's the connection to the initial PERL script?

Thank you for any wisdom which may be directed my way...
Flumoxed in Phx


In reply to "hung" OLE app after "Process::Create"d process terminates by TKHack

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.