Exemple #1
0
 private void ReadPipeData()
 {
     try
     {
         if (!PipeServer.IsConnected)
         {
             throw new Exception();
         }
         PipeServer.BeginRead(_buffer, 0, kSizeOfBuffer, new AsyncCallback(ApplyData), this);
     }
     catch (ObjectDisposedException ex)
     {
         System.Diagnostics.Debug.WriteLine(ex.Message);
     }
     catch (IOException ex)
     {
         System.Diagnostics.Debug.WriteLine(ex.Message);
     }
 }