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
I'm using CefSharp.39.0.0-pre03. When I run the WinForms Example in Release mode from Visual Studio, more than half the time when I close a tab or even the entire application, I see an exception in BrowserProcessServiceHost.CloseChannel. If launch the EXE from the command line, it shuts down just fine.
The stack trace is as follows:
atSystem.ServiceModel.Channels.PipeConnection.WriteHelper(Byte[]buffer,Int32offset,Int32size,Booleanimmediate,TimeSpantimeout,Object&holder)
at System.ServiceModel.Channels.PipeConnection.Write(Byte[]buffer,Int32offset,Int32size,Booleanimmediate,TimeSpantimeout)
at System.ServiceModel.Channels.BufferedConnection.WriteNow(Byte[]buffer,Int32offset,Int32size,TimeSpantimeout,BufferManagerbufferManager)
at System.ServiceModel.Channels.BufferedConnection.WriteNow(Byte[]buffer,Int32offset,Int32size,TimeSpantimeout)
at System.ServiceModel.Channels.BufferedConnection.Write(Byte[]buffer,Int32offset,Int32size,Booleanimmediate,TimeSpantimeout)
at System.ServiceModel.Channels.FramingDuplexSessionChannel.CloseOutputSessionCore(TimeSpantimeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.CloseOutputSession(TimeSpantimeout)
at System.ServiceModel.Channels.TransportDuplexSessionChannel.OnClose(TimeSpantimeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpantimeout)
at System.ServiceModel.Channels.ServiceChannel.OnClose(TimeSpantimeout)
at System.ServiceModel.Channels.CommunicationObject.Close(TimeSpantimeout)
at System.ServiceModel.Channels.CommunicationObject.Close()
Should I worry about this? It is surrounded with a try-catch block, but is there a better solution?
I am using CefSharp in an ActiveX control (I know. Shoot me, right?). With the ActiveX control, on shutdown, I see a similar communication error when the ActiveX control tries to Dispose itself. The ActiveX process does not close and the BrowserSubprocess for the GPU does not shutdown. I have included a try-catch block as well, but it does not seem to fix the issue. Any thoughts? I'm guessing that it has to do with how the ActiveX shuts down and Internet Explorer closes.