Max Number of Asynchronous Sockets
-
Hi, I have developed a windows service which starts multiple processes on a client machine and communicates with those. I use multiple sockets and asynchronous communication. This service may require to start multiple processes and to handle communication with those. But I have seen that when the number of client processes reaches 24 the service starts reporting following error. I am assuming this is related to threadpool because total concurrent threads reach at max (25) after 24 processes including one main thread (24+1). 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 worker threads and IO Completion threads using SetMaxThreads method exposed by ICorThreadPool interface, but no help. Any helping comment much appreciated. Thanks in advance, :)