Max Number of Processes limit
-
Hi there, I have been trying to start some processes from my Windows service which is a multithreaded application and uses threadpool. I am able to start upto 24 processes (using ProcessInfo) but when the service try to start 25th an Application execption is logged in the eventlog: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 0 Date: 9/8/2006 Time: 11:05:38 AM User: N/A Description: The description for Event ID ( 0 ) in Source ( .NET Runtime ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. The following information is part of the event: .NET Runtime version 1.1.4322.573- .NET Framework Initialization Error: C:\WINNT\Microsoft.NET\Framework\v1.1.4322\mscorwks.dll could not be loaded. I have tried setting maximum num of threads and IOCompletion threads using SetMaxThreads method exposed by ICorThreadPool interface, but no help. Task manager shows threads count 20 and IO Write- 5 for the windows service. Could it be appdomain or threadpool? Any helping comment much appreaciated. Thanks,:)