Re: I need some help with POE::Wheel::Run on Windows

Olivier Mengué <[email protected]>
Newsgroups gmane.comp.lang.perl.poe
Message-ID <[email protected]>
2009/10/2 Rocco Caputo <[email protected]>

> First, thanks to Andrew Feren, POE::Wheel::Run::Win32 has been merged into
> POE::Wheel::Run.
>
>
Great news !

I'm using POE::Wheel::Run::Win32 with my patch for bug #43995
https://rt.cpan.org/Ticket/Display.html?id=43995

Looks like you applied the patch. Fine!



> Andrew has also reported a memory leak POE::Wheel::Run under Windows:
> https://rt.cpan.org/Ticket/Display.html?id=50068
>
>
My problem is that I don't know Win32 APIs well enough to say whether his
> patch does any harm.  He's bypassing Win32::Console::_SetStdHandle() calls
> that set STDIN, STDOUT and STDERR to the pipes that communicate with the
> parent process.  It seems like reasonable code, but I don't know any better.
>

This part of the code is the most obscure to me and I've still not figured
out why it is required. The comments in the code are not enough for me to
understand.


> Any help would be appreciated.
>

Win32::Job->spawn() has options : stdin, stdout; stderr. Maybe a path to
explore?

Olivier.
http://search.cpan.org/~dolmen/ <http://search.cpan.org/%7Edolmen/>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.