Skip Menu |

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

Report information
The Basics
Id: 37966
Status: new
Priority: 0/
Queue: Win32-Process

Owner: Nobody in particular
Requestors: Radoslav.Vargic [...]

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

MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,HTML_MESSAGE
X-Virus-Checked: Checked by ClamAV on
Content-Type: multipart/alternative; boundary="------------070200040703080804050009"
X-Virus-Scanned: Debian amavisd-new at
Received: from ( []) by (Postfix) with SMTP id 2677E4D80AC for <bug-Win32-Process [...]>; Sun, 27 Jul 2008 17:20:00 -0400 (EDT)
Received: (qmail 24836 invoked from network); 27 Jul 2008 21:19:59 -0000
Received: from ( by with QMQP; 27 Jul 2008 21:19:59 -0000
Received: from (HELO ( by (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Jul 2008 14:19:56 -0700
Delivered-To: cpan-bug+Win32-Process [...]
User-Agent: Thunderbird (Windows/20071210)
Subject: strange behavior of Win32::Process
Return-Path: <Radoslav.Vargic [...]>
X-Original-To: bug-Win32-Process [...]
Date: Sun, 27 Jul 2008 23:19:50 +0200
X-Spam-Level: *
Message-Id: <488CE676.2090007 [...]>
To: bug-Win32-Process [...]
From: Radoslav Vargic <Radoslav.Vargic [...]>
Content-Length: 0
content-type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: windows-1250
Content-Length: 1425
Download (untitled) / with headers
text/plain 1.3k
Hello. I have encountered a strange behavior of Win32::Process. (I am running Windows XP and using Active Perl: v5.10.0 built for MSWin32-x86-multi-thread) (this perl version includes the 0.12 version of package Win32::Process) It seems that keeping the $ProcessObj blocks somehow the standard usage of threads and processes. (on the opposite side, when I put $ProcessObj=0 before I start to work with other processes/threads, everything works fine ...) E.g. the following demo code comes not through and remains blocked in the second "join command". use strict; use threads; use Win32::Process; my $ProcessObj; sub sub1 { print "In the thread begin\n"; sleep(1); print "In the thread end\n"; } sub ErrorReport{ print Win32::FormatMessage( Win32::GetLastError() ); } Win32::Process::Create($ProcessObj, "C:\\windows\\system32\\notepad.exe", "notepad temp.txt", 0, NORMAL_PRIORITY_CLASS, ".")|| die ErrorReport(); my $thr1 = threads->new(\&sub1); print "Before Join 1\n"; $thr1->join; print "After Join 1\n"; my $thr2 = threads->new(\&sub1); print "Before Join 2\n"; $thr2->join; print "After Join 2\n"; Maybe something must be specially handled to come through ... but what? Thanks in advance. Best regards R. Vargic
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: 8bit
X-RT-Original-Encoding: windows-1250
Content-Length: 2108

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to