Win32::Process ... target problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #16
    Hi Alan,

    I don't know why the function is not returning the expected STILL_ACTIVE message. I have never used this mdule before either and I am not familiar with the Win32 modules in general. So I have to do what you are doing, read the documents and try some code. Try adding this line to your code also:

    use Win32;


    I see it's used in the example code for Win32::Process so maybe it has to be included as well.

    Comment

    • asearle
      New Member
      • Sep 2006
      • 39

      #17
      In the end it was my silly, silly error: I was testing the exit code of the process checking the exit code ... rather than checking the exit code. Arrggghh!

      Anyway it should have been like this ...

      Code:
          
      $ProcessObj->GetExitCode( $exitcode );
      print "Process completed with exit code $exitcode\n";
      Anyway, I hope that my questions also help others who need to do the same thing.

      Cheers,
      Alan.

      Comment

      • KevinADC
        Recognized Expert Specialist
        • Jan 2007
        • 4092

        #18
        ahh, thanks for the update :)

        Comment

        Working...