On Mon, Jun 25, 2007 at 03:13:31PM +1200, Jeremy Palmer wrote:
> Hi,
>
> I'm building a Win32 POE application that need to make a non-blocking call to
> a function in an external Perl package. This function takes references to
> Perl objects and array references (however no subroutine refs).
>
> I've looked at the options for completing this sort of task with
> POE::Component::Child & Wheel::Run + Filter::Reference, however there seems
> to be one limiting factor here - Win32 fork emulation.
>
> The Win32 fork emulation seems very buggy. In tests I've used with Wheel::Run
> I get fork failures (i.e. "fork() failed: Resource temporarily unavailable")
> after the 64 calls of fork from the parent process. See the attached simple
> example that demos the error:
I think that's because fork on win32 is emulated via thread spawn and win32
is restricting you to that many threads.
I'm not enough of a win32ist to be able to be sure of that or tell you what you
need to do to fix it though, sorry.
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|