Perl Monk, Perl Meditation | |
PerlMonks |
Re: Having Win32 Perl crashs using ithreadsby marioroy (Prior) |
on Feb 16, 2016 at 19:48 UTC ( [id://1155390]=note: print w/replies, xml ) | Need Help?? |
Hello dchidelf, and welcome to the monastery. The following resolves the issue for me. Basically, I'm able to iterate through the loop 20 times. It looks like the *tied* $out and $err handles are not being garbage collected by Perl. Thus, likely memory leaking. Add a CLOSE method to the IOQueue package.
Inside the test script, close $out and $err handles before calling $p->close().
The above passes on a Windows 7 VM with Strawberry Perl 5.14.x, 5.16.x, 5.18.x, 5.20.x, and 5.22.x. You may already know this, but $^X is a special variable in Perl. It provides the path for the Perl interpreter.
Your *cool* module is interesting. Regards, Mario
In Section
Seekers of Perl Wisdom
|
|