Example #1
0
 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 { }
 }
Example #4
0
        static void StartPipeHandler()
        {
            threadID = ThreadHelper.GetCurrentThreadId();
            servicePipe.WaitForConnection();

            while (running)
            {
                serviceReceiver.ProcessMessage();
                servicePipe.Flush();
            }

            servicePipe?.Dispose();
        }
Example #5
0
        void StartPipeHandler()
        {
            threadID = ThreadHelper.GetCurrentThreadId();
            captureServicePipe.WaitForConnection();

            while (running)
            {
                listenerReceiver.ProcessMessage();
                captureServicePipe.Flush();
            }

            captureServicePipe?.Dispose();
        }