[Mono-dev] I: Re: System.Diagnostics.Process.Start() crashes when trying to allocate more than 255 processes

Tom Philpot tom.philpot at logos.com
Mon Jun 13 16:00:56 EDT 2011

Might it have to do with the fact that Mono only allows 256 shared handles?

See _WAPI_HANDLE_INITIAL_COUNT in wapi-private.h and the "/* FIXME: grow
the arrays */" in handles.c _wapi_handle_real_new().

We ran into a problem like this on a build box that exec'd a lot of
processes but we worked around it by using GC.Collect();
GC.WaitForPendingFinalizers(); GC.Collect(); to clean up the handles.


On 6/13/11 8:05 AM, "fcolle at libero.it" <fcolle at libero.it> wrote:

>Versions: both mono 2.10 and 2.8. I think 2.4 has the same problem as
>Architecture: both x86 32 bit and 64 bit
>OS: Redhat EL 5.4
>        Ubuntu 10.04
>Stack trace: just run the example code. It's self contained.
>>>----Messaggio originale----
>>>Da: robertj at gmx.net
>>>Data: 13/06/2011 16.14
>>>A: <mono-devel-list at lists.ximian.com>
>>>Ogg: Re: [Mono-dev] System.Diagnostics.Process.Start() crashes when
>>allocate more than 255 processes
>>>On 13.06.2011 16:10, fcolle at libero.it wrote:
>>>> Dear all,
>>>>   my linux application needs to start a big number (400) of
>>process is a mono application.
>>>> I found the when trying to run more then 255 processes the runtime
>>generates an exception.
>>>Mono version? Architecture? Exception's stack trace?
>>>Mono-devel-list mailing list
>>>Mono-devel-list at lists.ximian.com
>Mono-devel-list mailing list
>Mono-devel-list at lists.ximian.com

More information about the Mono-devel-list mailing list