MSWin32 and POE::Wheel::Run

BinGOs on 2007-02-03T16:48:02

Great as POE::Wheel::Run is, there was one niggle that was bothering me, being able to run another instance of the perl executable using it on MSWin32.

I thought I'd solved the problem using Win32::Process, but unexpected terminations of the spawning POE process would leave rogue processes. Suck.

So, I'm calling on the POE community via the mailing list and here at use.perl.org if there is a solution to this problem.

The hacked POE::Wheel::Run that I came up with is here. Feel free to email me at chris@bingosnet.co.uk if you have an answer.

/me stratches his head


Win32::Job

dagolden on 2007-02-04T13:42:00

You might try Win32::Job and see if that works better than Win32::Process.

Re:Win32::Job

BinGOs on 2007-02-05T08:35:32

Damn, I'd forgotten all about Win32::Job.

Ah =(

Win32::Job requires Windows 2000 or later. Windows 95, 98, NT, and Me are not supported.

Maybe not suitable for POE::Wheel::Run, but it has got me thinking about making another POE::Component, so thanks.