应用程序在关闭时冻结

时间:2018-11-13 11:34:59

标签: c# .net cefsharp

我在新线程中创建并初始化了Cef(background属性= true)。然后,此线程调用Cef.Shutdown()。有时会导致死锁。请帮助我找出问题所在?

var cefThread = new Thread(CefThread)
        {                
            IsBackground = true
        };

   cefThread.Start();
   ...
   ...
 private static void CefThread()
 {
     CefSharpSettings.ShutdownOnExit = false;
     Cef.Initialize(...)
     ....
     Cef.Shutdown();
 }

0 个答案:

没有答案