Skip to content
Discussion options

You must be logged in to vote

I have a similar situation. I have a monolithic C# desktop application which hosts Windows Forms controls and also uses service classes (running in background threads) that use the OffScreen browser for capturing screenshots.

The things to watch out for are around the initialization and shutdown of CEF, and also the construction and disposal of browser instances and any objects (resource handlers, etc.). If you don't get these right, when the application is exiting you may either hit an unmanaged exception in Cef.Shutdown(), if it detects you have not disposed all objects, or a deadlock in the worst case scenario.

This is a good guide on doing initialize/shutdown correctly. https://github…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by garyman99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants