mercredi 30 mai 2012 12:52
I am getting error_broken_pipe (system code 109) while using readpipe in named pipes.
I am having one desktop application and one service.OS used windows 7
Service has to get communicated to desktop application. For this communication I am using named pipes.
I started service application first and then desktop application. Service application creates the named pipe and desktop application connects to the named pipe.
After getting connected desktop appliation is writing to the pipe(writefile) and service will read the data using readfile. At this point I am getting the error error_broken_pipe .
Can any one please help me what are the reasons for error_broken_pipe?
Can any one please help me how to resolve the issue.
I have created named pipe in the following way: hNamedPipe = CreateNamedPipe((LPSTR)"\\\\.\\pipe\\DataPipe", PIPE_ACCESS_DUPLEX , PIPE_TYPE_BYTE | PIPE_READMODE_BYTE | PIPE_WAIT,PIPE_UNLIMITED_INSTANCES, sizeof(CALLINFO), sizeof(CALLINFO), 20000, &PipeAttributes);
Connected to the named pipe in the following way:
hPipe = CreateFile((LPSTR)
"\\\\.\\pipe\\DataPipe_TAPI", GENERIC_WRITE|GENERIC_READ , 0, NULL,OPEN_EXISTING, 0, NULL);I need urget help on this. Can anyone please help me on this. Thanks in advance..
- Type modifié Niki HanMicrosoft Contingent Staff, Moderator lundi 4 juin 2012 16:15
Toutes les réponses
vendredi 1 juin 2012 02:09Modérateur
According to your description, it is a development related case. I recommend you to contact MSDN forum for more insights.
TechNet Community Support