I'm using the CreateProcess API call to spawn an instance of another programme. There are typically two different scenarios where this call is being used. The first is one where the process is created and then the WaitForSingleObject call is used to ensure that the process completes before execution continues and the other is where the process is simply created and then execution continues. My question relates to this second scenario.
In the event of creating the process and then continuing is there anything else I need to do with the process?? At the moment i'm just closing the handle to the process using CloseHandle(handle id) - will this cause any problems?? The process I am starting is created in it's own WOW VDM and I left the programme running for a few hours and the machine crashed because it ran out of memory - i've got a suspicion that I've got a memory leak and I wondered if it was related to the creation of these processes!!!