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

People
Owner: Nobody in particular
Requestors: Radoslav.Vargic [...] sitronicsts.sk
Cc:
AdminCc:

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 16.mx.develooper.com
Content-Type: multipart/alternative; boundary="------------070200040703080804050009"
X-Virus-Scanned: Debian amavisd-new at sitronicsts.sk
Received: from x1.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 2677E4D80AC for <bug-Win32-Process [...] rt.cpan.org>; Sun, 27 Jul 2008 17:20:00 -0400 (EDT)
Received: (qmail 24836 invoked from network); 27 Jul 2008 21:19:59 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 27 Jul 2008 21:19:59 -0000
Received: from smtp.sitronicsts.sk (HELO smtp.sitronicsts.sk) (62.168.125.109) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Jul 2008 14:19:56 -0700
Delivered-To: cpan-bug+Win32-Process [...] diesel.bestpractical.com
User-Agent: Thunderbird 1.5.0.14 (Windows/20071210)
Subject: strange behavior of Win32::Process
Return-Path: <Radoslav.Vargic [...] sitronicsts.sk>
X-Original-To: bug-Win32-Process [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sun, 27 Jul 2008 23:19:50 +0200
X-Spam-Level: *
Message-Id: <488CE676.2090007 [...] sitronicsts.sk>
To: bug-Win32-Process [...] rt.cpan.org
From: Radoslav Vargic <Radoslav.Vargic [...] sitronicsts.sk>
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.