Title: Message
I posted this to the Win32-Users group already, but possibly some else will have seen this issue.
 
Issue 1
 
I have a situation where two processes have to be created from the same script.  I'm using Win32::Process::Create to do this.  The first app, (let's call it 'The Helper' app) launches fine and is controlable with the Win32::Process tools at hand.  $Process->GetProcessID reports the proper PID; $Process->Wait works fine.    What I find is on the creation of the second app (let's call 'The User App') the whole thing breaks down.
 
$Process->GetProcessID reports some off the wall PID and $Process->Wait( $anyvalue ) failes.  In fact, the PID it reports is a PID from 4 or 5 tests earlier.  If I split this script up and run each seperately, everything works fine, so it's something to do with Win32::Process::Create having issues with itself.  Is there a memory buffer issue here or what?
 
Issue 2
 
Same Extension, I've noticed once the $Process is created, it's static, so even if the process is dead and the script is still running, $Process->GetProcessID reports the PID as if the process is still running.  Becaus of this, I've had to go to WMI for Dynamic Enumeration.
 
If Issue 1 can't be resolved, I will have to move to WMI for process creation too.  Not much of a reason to stay with PERL for this.
 
If it matters, I'm using Perl Build 630 on a Win2k Server w/ SP2 platform.
 
Thanks

Reply via email to