Login  Register

Pipe limit?

Posted by Holger Kleinsorgen on Jun 24, 2015; 5:54pm
URL: https://forum.world.st/Pipe-limit-tp4833927.html

Hi,

is there some kind of limit regarding the number of concurrent pipes to external processes on Windows?
I'm spawning 16 processes and want to redirect the output to Stdout, but I get the following exception.
It doesnt crash when I spawn 8 processes.

Cause of Dump: Unhandled exception: out of threads

Context Stack:
[1] Win32SystemSupport(ExternalInterface)>>externalAccessFailedWith:
[2] Win32SystemSupport>>externalAccessFailedWith:
[3] Win32SystemSupport>>WriteFile:lpBuffer:nNumberOfBytesToWrite:lpNumberOfBytesWritten:lpOverlapped:
[4] Win32SystemSupport>>okWriteFile:lpBuffer:nNumberOfBytesToWrite:lpNumberOfBytesWritten:lpOverlapped:
[5] optimized [] in PCPipeAccessor>>primWriteFrom:startingAt:for:
[6] BlockClosure>>ensure:
[7] PCPipeAccessor>>primWriteFrom:startingAt:for:
[8] PCPipeAccessor(IOAccessor)>>writeFrom:startingAt:forSure:
[9] IOBuffer>>flushBufferUpTo:
[10] ExternalWriteStream>>flush
[11] optimized [] in StandardIOStream>>nextPut: