Cef.Shutdown
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Community
I create all my ButtonDefinitions the same way
_app.CommandManager.ControlDefinitions.AddButtonDefinition(...)
And they all work but one of them have a weird issue. The problem command uses iText7 to manipulate an external PDF file. This works if Home screen on startup is turned off.
With Home Screen started I get the exception bellow after the 'OnExecute' event completes, so I can't even debug the problem.
How can I control Cef.Shutdown, when I'm never calling Cef.Initialize?
All my other commands work perfectly but they don't reference iText7
System.Exception: 'Cef.Shutdown must be called on the same thread that Cef.Initialize was called - typically your UI thread. If you called Cef.Initialize on a Thread other than the UI thread then you will need to call Cef.Shutdown on the same thread. Cef.Initialize was called on ManagedThreadId: 1 where Cef.Shutdown is being called on ManagedThreadId: 4'