private void OnChatWindowClosed(object sender, EventArgs e) { try { NamedPipeStream?.Dispose(); } catch { } }
private void ChatWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { try { NamedPipeStream?.Disconnect(); NamedPipeStream?.Dispose(); } catch { } }
private void ChatWindow_Closing(object sender, EventArgs e) { try { NamedPipeStream?.Disconnect(); NamedPipeStream?.Dispose(); } catch { } }
static void StartPipeHandler() { threadID = ThreadHelper.GetCurrentThreadId(); servicePipe.WaitForConnection(); while (running) { serviceReceiver.ProcessMessage(); servicePipe.Flush(); } servicePipe?.Dispose(); }
void StartPipeHandler() { threadID = ThreadHelper.GetCurrentThreadId(); captureServicePipe.WaitForConnection(); while (running) { listenerReceiver.ProcessMessage(); captureServicePipe.Flush(); } captureServicePipe?.Dispose(); }