I don't have an answer to your question, but doing a busywait in your first instance seems like a bad idea. Doesn't Win32 have a waitpid() function?

Edit: Yeah. It looks like spawn() takes a bool argument to tell it whether it should wait or not.


Edited by wfaulk (05/04/2004 16:12)
_________________________
Bitt Faulk