The best way to avoid this error would be to solve it from OS side, increasing the capacity of the OS.
On Windows a process failing with an error code 128 and ERROR_WAI_NO_CHILDREN is caused by a lack of desktop heap.
This is likely to occur when there are many processes (jobs) launched under the same User Service.
In order to increase the Desktop Heap, go to Windows Registry Editor and open the key:
SharedSection=1024,3072,512 Windows=On Sy=ubSystemType=Windows
On SharedSection, the third value is set up to 512 by default on Windows 2003.
It should be changed to the following values:
SharedSection=1024,3072,1024 for 100 jobs
SharedSection=1024,3072,2048 for 298 jobs
System has to be restarted to get the changes updated.
Fix Status: No Fix