Skip Menu |

This queue is for tickets about the Win32-Process CPAN distribution.

Report information
The Basics
Id: 35903
Status: rejected
Priority: 0/
Queue: Win32-Process

People
Owner: Nobody in particular
Requestors: KES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: (no value)



Subject: $ProcessObj->GetProcessID() returns PID as string but expected value is numeric
$ProcessObj->GetProcessID() returns PID as string but expected is numeric
Looking at Process.xs it is returning a number, and the sample program below supports that it actually does so too, so I suspect the issue might be in your code. #!perl use strict; use warnings; use Devel::Peek; use Win32; use Win32::Process; Win32::Process::Create(my $process, "$ENV{SYSTEMROOT}\\system32\\notepad.exe", "notepad", 0, NORMAL_PRIORITY_CLASS, ".") or die $^E; Dump($process->GetProcessID); $process->Wait(INFINITE); __END__ perl proc.pl SV = NV(0x1866614) at 0x1964b74 REFCNT = 1 FLAGS = (PADTMP,NOK,pNOK) NV = 4200