Quote:
Originally Posted by boir
But after a few runs I got the error
|
Just a guess: you always talk about opening the pipe, but I don't see that you close it anywhere. Maybe you can only open it for a limited number of times and then have to close one of the previous attempts (better always close it before you leave the program).
At least the
documentation of CreateFile says "When an application is finished using the object handle returned by CreateFile, use the CloseHandle function to close the handle".