You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var server = new NamedPipeServer<TestClass>("MyServerPipe");
server.Start();
the failure of pipe creation is not detectable. There can be an error (for example the pipe is busy), which is simply written to console output, but no events are thrown (Error). This code causes the problem:
while (this._shouldKeepRunning)
this.WaitForConnection(this._pipeName);
If I start a server instance
the failure of pipe creation is not detectable. There can be an error (for example the pipe is busy), which is simply written to console output, but no events are thrown (Error). This code causes the problem:
in this.WaitForConnections this can fail:
and then the error is handled in try catch, but while cycle keeps running and tries again and no error event is thrown.
So how to detect if server.Start was unsuccessful?
Thanks.
The text was updated successfully, but these errors were encountered: