I have a Windows application which creates up to 35 processes and it's working OK when it's running from cmd. But when it is executed as a service on the same machine it is able to create only 20 processes and all other are killed because of some kind of resource exhaustion problem.
The problem is persistent on one Windows 2003 server but not reproducible on other servers.
Can it be because the system has run out of desktop heap? http://support.microsoft.com/kb/184802
How can I check it?