Hi. Can you use the task functions RemoveTask() etc. with processes ? I don't think so, so how do you exit well from a spawed(child) process created from disk then ?
What I'm trying to do would go like this: Signal the child process to prepare to finish, wich deallocates all stuff it has allocated. Then the child process enters a Wait(0L) state (safe state) waiting for something equivalent to RemoveTask() to be called in the main process. Then the main process can delete the child process (in my case UnLoadSeg it).
I'm also supposing one can't just exit() from the child process because then how can it signal the main process to UnLoadSeg it ? A easier thing would be if the child process was a function in the main program but I'm creating it from a file after a LoadSeg...
So it all boils down to how I UnLoadSeg it I guess...