Initializing CefSharp inside of a third-party application causes a crash #4480
Replies: 3 comments 1 reply
-
Check Windows logs for any errors, but you've almost certainly not deployed something. |
Beta Was this translation helpful? Give feedback.
-
The Windows logs do not indicate any issues. As an fyi, I have downloaded the test app and executed it on one of the deployment machines with no problem. That said, I compared the files that are bundled with the test app and those that I am deploying and nothing is missing. I am deploying all of the files that are bundled with the test app. |
Beta Was this translation helpful? Give feedback.
-
Converted to discussion as this seems more like a support request than an actual bug that needs fixing.
Are all your target machines also using
If it works within There are a few important things to remember though:
Have you installed the correct architecture? You'd need to make sure the
Check the Does |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there an existing issue for this?
CefSharp Version
112.2.270
Operating System
Windows 10
Architecture
x86
.Net Version
.NET 4.5
Implementation
WinForms
Reproduction Steps
I have been developing an extension to ArcMap (a third party mapping application) and have been using CefSharp as my web browser within the extension, since I can't get the out-of-the-box WebBrowser in Visual Studio 2015 to work consistently. I have four web browser controls that I have on a WinForm that each have a link to a different web map (URL). Everything works fine on my development machine, but the parent application (ArcMap) is crashing on each machine that I have deployed the solution to. It appears to happen immediately when I start up the extension, which is where CefSharp is initialized. I am calling Cef.InitializeAsync(new CefSettings()). As an fyi, the Microsoft Visual C++ 2015-2019 Redistributable has been installed on the machines.
Expected behavior
I would expect that CefSharp would initialize properly and that I would see four web maps (one in each of my CefSharp browsers.
Actual behavior
The parent application (ArcMap) crashes on deployed machines when attempting to initialize CefSharp with no displayed error message.
Regression?
I have not tested in a previous version of CefSharp.
Known Workarounds
None.
Does this problem also occur in the CEF Sample Application
Not Tested
Other information
None.
Beta Was this translation helpful? Give feedback.
All reactions