Desktop Heap Issue while executing application using CreateProcess()
I have an application (parent process) that uses CreateProcess() API to start executables that runs under parent process. Now at some point of time CreateProcess() API fails to start the executable (child Process) and it fails to start because of the system has run out of desktop heap.Please read below link to know more about desktop heap issue:http://support.microsoft.com/kb/126962 Problem : When I call GetExitCode() against the failed process, it does not return the exitcode as ERROR_WAIT_NO_CHILDREN (128 - Windows Error Code). Please refer below links which says that it returns ERROR_WAIT_NO_CHILDREN error code when CreateProcess() fails to execute process, http://support.microsoft.com/default.aspx?scid=kb;en-us;184802 http://support.microsoft.com/?id=156484 I am running my application on Windows Server 2008 Operating System. Does anyone able to return ERROR_WAIT_NO_CHILDREN error code when CreateProcess() fails to execute due to out of desktop heap issue on windows server 2008?
March 2nd, 2010 3:35pm

Hi Dhaval-panchal,I see that your issue is more towards application programing, there is a dedicated forum to handle programing related query , please post your query under below link and navigate to appropriate forum.http://social.msdn.microsoft.com/Forums/en/categories/
Free Windows Admin Tool Kit Click here and download it now
March 9th, 2010 6:35am

Ok thanks.
April 2nd, 2010 3:53pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics