|
-
December 8th, 1999, 08:34 AM
#1
Problems with Pipes
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|