-1

I have a vc++ program that calls another large exe written in MFC vc++ over and over with create process threads. sometimes the exe fails to start because the DoModal in the exe fails, but not always. out of 6 calls, 2 may not start.

is there some sort of resource limit? or something else that can identify the problem rather than a -1 return code? It seems to be mainly when I run as a service under localsystem account, not sure why - might be a red herring.

In the main application startup main window:-

 CTestDlg dlg;
 int ret = dlg.DoModal();

return code is sometimes -1.

John Coleman
  • 51,337
  • 7
  • 54
  • 119
user3725395
  • 145
  • 2
  • 13

1 Answers1

0

the solution was in article: How to increase the maximum number of child processes that can be spawned by a windows service -- desktop heap limits

worked for me, but had to reboot after making changes for it to take effect.

user3725395
  • 145
  • 2
  • 13