Subj : Re: CreateProcess To : borland.public.cpp.borlandcpp From : mike Date : Thu Jun 17 2004 08:11 pm > Try remapping stdin to an unnamed pipe or memory mapped file or > something like that so that you can from your program provide the key > combinations telling it to shut down. The STARTUPINFO structure used > in the call to CreateFile has provisions for setting the handles the > program will use for stdin, stdout and stderr. > i already do this. both stdout and stderr are redirected to 2 different named pipes. like i stated before, everything runs fine for about 7 or 8 times, then createprocess fails. i saw the generic error message, but it doesn't make much sense to me. why work for the first 6 times and then become broken. don't really know what is going on. i guess i can try to debug more to see if i can figure anything else out.... aloha, mike .