Posted on 1998-10-14
I have a probelm with processes
I use CreateProcess to start the new process then I use WaitForSingleObject to wait for it to end. Now the problem is that this new (2nd) process also creates process (3rd).
What happens is that 2nd is terminated before 3rd, and this one seems to just hang around in memory.
the 2nd process is a program which I have no control over, some one else wrote it.
so the main question is:
how can I make sure that all subprocesses are finished before I terminate the 2nd process?