Generating and using CEF binaries

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Generating and using CEF binaries

Postby Jonas » Wed Jan 04, 2017 10:41 am

I'm using the CefSharp 53 minimal winform example based on CEF 2785, but I'm getting an error when I try to use CEF 2785 binaries that I compile myself.

My first question is, should copying the CEF binaries that I generate into my application folder work? Or am I missing a step?
If that is sufficient, then my second question is, does someone have a clue what's causing the error below? It seems to originate with the CLR.

Here is what does work out-of-the-box:
I can compile the minimum winform x86 example and publish with ClickOnce.
I can run the published project when I copy the CEF 2785 binaries that get installed by NuGet (in the packages\ folder) into my publish application folder.

I was able to generate the x86 binaries for CEF 2785 using these commands:
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true
python d:/cefbuild/automate-git.py --download-dir=d:/cefbuild/CEF2785 --branch=2785 --no-debug-build --minimal-distrib-only --no-update --force-distrib

This generated the binaries I need as two folders (Release\ and Resources\) inside the folder cef_binary_3.2785.1486.g8c4ba9f_windows32_minimal\.

Here is what does not work:
I copied those binaries from Release\ and Resources\ into my publish application folder, replacing the binaries from NuGet.
When I run the example I get the following error.

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: CefSharp.MinimalExample.WinForms
Problem Signature 02: 1.0.0.0
Problem Signature 03: 585c54b0
Problem Signature 04: CefSharp.WinForms
Problem Signature 05: 53.0.0.0
Problem Signature 06: 57fafeda
Problem Signature 07: 60
Problem Signature 08: 1e
Problem Signature 09: System.InvalidOperationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: Generating and using CEF binaries

Postby Jonas » Fri Jan 06, 2017 9:56 am

Would love a suggestion if anyone has. I see two possibilities. Either 1) my automate-git.py arguments are wrong or 2) I'm not copying the correct binaries in my project.
Jonas
Techie
 
Posts: 39
Joined: Thu Jul 10, 2014 2:23 pm

Re: Generating and using CEF binaries

Postby magreenblatt » Mon Jan 09, 2017 2:36 pm

Try asking in the CefSharp forum.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 80 guests

cron