#CLIENT->SERVER Problem
SysOp,
I seem to be having a problem with PIPES. This is what I am doing
I open the SERVER:
CreateNamedPipe("me",
PIPE_ACCESS_INBOUND | FILE_FLAG_OVERLAPPED,
PIPE_READMODE_MESSAGE | PIPE_NOWAIT |
PIPE_TYPE_MESSAGE,
50,
32000,
32000,
0,
NULL);
ConnectNamedPipe(…)
This allows the server to continue processing while the Client is
starting or vice versa.
Then the CLIENT starts:
CreateFile("me",
GENERIC_WRITE,
FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_ALWAYS,
FILE_FLAG_OVERLAPPED,
NULL);
I then attach an event to the OVERLAPPED structure.
This all works as planned – I can send from the CLIENT to the SERVER
with no problems. BUT if I stop the CLIENT either controlled(
closing handles) or just stop the process. The next time it starts
at the CreateFile returns the error 231(ERROR_PIPE_BUSY)!!!!!
Is this a bug – or is there some other way to accomplish this affect?
THANX in advance
Bill Whitman
There is 1 Reply.