pueromane
December 8th, 1999, 07:34 AM
I have written two programs. One Server and one client witch run on the same computer. I want to make the comunication with pipes.
The Server creates the Pipe with the "CreateNamedPipe" command and the client connects to the server with the "CreateFile" command. I use the "ReadFile" and "WriteFile" to read and write to the pipe.
My Problem is that when the client wants to connect to the pipe with the Createfile command in the debug mode it works fine, but when the program runs in the non debug mode the createfile command returns -1. When I make a delay before each Createfile it works, but the delay is about one second, and that makes the application very slow.
Does anyone has a sample program how I can make it other, or can help me with that problem.
mfG Pueromane
The Server creates the Pipe with the "CreateNamedPipe" command and the client connects to the server with the "CreateFile" command. I use the "ReadFile" and "WriteFile" to read and write to the pipe.
My Problem is that when the client wants to connect to the pipe with the Createfile command in the debug mode it works fine, but when the program runs in the non debug mode the createfile command returns -1. When I make a delay before each Createfile it works, but the delay is about one second, and that makes the application very slow.
Does anyone has a sample program how I can make it other, or can help me with that problem.
mfG Pueromane