-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shutdown issue #585
Comments
I just found https://code.google.com/p/chromiumembedded/issues/detail?id=421 so if you are trying to implement #574 (comment) it looks unlikely it will work. If you are just looking for a single shutdown at application exit have you made sure to dispose all ChromiumWebBrowser instances first (search the CefSharp WPF related code). #2 has a hint on some refcounting. |
No this one is just to shutdown when exiting the app. Ok thanks I'll try it and see how it turns out. |
@myrnazhou Do you know what line it hands on? Does it enter into the lock? |
I had this problem on WPF + cef later than 1750. The problem was related to initlizing Cef on another thread than the Dispatcher. It got stuck when disposing. |
@bjarteskogoy |
@myrnazhou Yes. Had to initialize it in the Dispatcher thread. Fixed it for me. |
I see the same popup as @myrnazhou when closing the application, and running CEF Shutdown. @myrnazhou did you try @jornh's suggestion to first dispose all browsers before calling shutdown? |
@Bodekaer Has the issue occurred since you updated to the latest version of Possibly useful links |
Update: I believe the main cause was that we sometimes store browsers in memory without displaying them (for faster re-load times when displaying new browsers). Wonderful! :) This was one that's been worrying me for a while, and yet it was so easy to fix :) hehe |
@Bodekaer Excellent! Is it worth implementing the changes in |
Yeah I guess it would. Although I'm not so happy with my implementation yet, so wouldn't feel too good about putting it into CefSharp :)
And then I just call |
Interesting! I'm surprised that's nessicary. See Already does something very similar. |
Haha yes that is strange :) Could that be the reason? |
Quite possible, probably worth looking into 👍 |
@Bodekaer Happy to close this? |
I actually just experienced this again yesterday. Let's close this issue though, as once I have a way to reproduce this other rare case, then I'll just open a new issue. |
Works for me 😄 |
Hi guys,
I can't seems to call the Shutdown, I think this case is similar with this one #2.
So the problem is I can't close my app because when I called Shutdown the thread stuck there, and the app just continue running.
CefSharp/CefSharp.Core/Cef.h
Line 357 in 12f9c29
The text was updated successfully, but these errors were encountered: