There was an error writing to the pipe: The pipe is being closed. (232, 0xe8).

640 views
Skip to first unread message

Matt B

unread,
Jun 16, 2015, 1:35:04 PM6/16/15
to cefs...@googlegroups.com
I'm using ChromiumWebBrowser inside of a winforms UserControl.  The UserControl is dynamically created, shown, the disposed of.  Sometimes I get the following error during dispose:

"There was an error writing to the pipe: The pipe is being closed. (232, 0xe8)."

How do I prevent this?  I tried calling Stop on the ChromiumWebBrowser prior to disposing, but to no avail.

Stack Trace:

  System.ServiceModel.dll!System.ServiceModel.Channels.PipeConnection.Read(byte[] buffer, int offset, int size, System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.DelegatingConnection.Read(byte[] buffer, int offset, int size, System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.SessionConnectionReader.Receive(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.SynchronizedMessageSource.Receive(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.TransportDuplexSessionChannel.EnsureInputClosed(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.TransportDuplexSessionChannel.OnClose(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Close(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.ServiceChannel.OnClose(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Close(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Close() Unknown
  [Native to Managed Transition]
  System.ServiceModel.dll!System.ServiceModel.Channels.ServiceChannelProxy.ExecuteMessage(object target, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCall) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.ServiceChannelProxy.InvokeChannel(System.Runtime.Remoting.Messaging.IMethodCallMessage methodCall) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.ServiceChannelProxy.Invoke(System.Runtime.Remoting.Messaging.IMessage message) Unknown
  mscorlib.dll!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(ref System.Runtime.Remoting.Proxies.MessageData msgData, int type) Unknown
  CefSharp.dll!CefSharp.Internals.BrowserProcessServiceHost.CloseChannel(System.Threading.Tasks.Task<System.ServiceModel.OperationContext> task) Unknown
  CefSharp.dll!CefSharp.Internals.BrowserProcessServiceHost.OnClose(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Close(System.TimeSpan timeout) Unknown
  System.ServiceModel.dll!System.ServiceModel.Channels.CommunicationObject.Close() Unknown
  CefSharp.Core.dll!CefSharp.ManagedCefBrowserAdapter.DoDispose(bool isDisposing) Unknown
  CefSharp.dll!CefSharp.DisposableResource.Dispose() Unknown
  CefSharp.Core.dll!CefSharp.ManagedCefBrowserAdapter.Dispose(bool A_0) Unknown
  CefSharp.Core.dll!CefSharp.ManagedCefBrowserAdapter.Dispose() Unknown
  CefSharp.WinForms.dll!CefSharp.WinForms.ChromiumWebBrowser.Dispose(bool disposing) Unknown
  System.dll!System.ComponentModel.Component.Dispose() Unknown
  System.Windows.Forms.dll!System.Windows.Forms.Control.Dispose(bool disposing) Unknown
  System.Windows.Forms.dll!System.Windows.Forms.ContainerControl.Dispose(bool disposing) Unknown
> ceftest.exe!ceftest.UserControl1.Dispose(bool disposing) Line 20 C#
  System.dll!System.ComponentModel.Component.Dispose() Unknown

TIA,

MB


Alex Maitland

unread,
Jun 16, 2015, 6:41:04 PM6/16/15
to cefs...@googlegroups.com
Version?

How quickly after creating the browser is it being disposed of?
Reply all
Reply to author
Forward
0 new messages