Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a maximum number of Processes that can run?

Status
Not open for further replies.

jsaxon2

Programmer
Oct 24, 2001
56
US
Is there a maximum number of Processes that can run?

We have a service that runs to control printer. It spawns an instance of itself for every printer that is setup. We have found that if there are too many printers running, we get an error. "The application failed to initialize properly (0x0000142). Click on OK to terminate the application." We were able to duplicate this error on another system, but we had to setup about 25 extra printers. This leads me to beleive that it is a resource problem. Can anyone help.

The application is written in C. I am looking for suggestions as to what I could change, or how I can get around this problem such as making it a multi-threaded application.

Thanks in advance.
John
 
Memory is one limit for sure. If you can, adjust your stack size for your. I've also run into problems when the Handle count grows. Check for handle leaks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top