> No, please. I don`t need sockets. For communication with a subprocess, all > I need is a pipe. Sockets would be an overkill for that.
I agree, but it seems like pipe WaitForSingleObject is broken. You'd need a thread polling with PeekNamedPipe, or a busy-waiting loop in the main thread altogether. Paolo