CefSharp icon indicating copy to clipboard operation
CefSharp copied to clipboard

64-bit Winforms CEF?

Open penderi opened this issue 12 years ago • 54 comments

Hi all, I've seen some conflicting comments, but is there a 64-bit version of the winforms control? We're dependent on it... is there a chance support will continue or are we at the end of the line?

penderi avatar Jun 11 '14 14:06 penderi

I think you've got old code there somehow.

result = method.Description.Function(obj.Value, parameters); is very old code. Are you using code from https://github.com/jessicasco/CefSharp/tree/JsBinding_WIP or https://github.com/cefsharp/CefSharp/commits/JsBinding_WIP?

amaitland avatar Sep 16 '14 04:09 amaitland

The code should look like https://github.com/cefsharp/CefSharp/blob/JsBinding_WIP/CefSharp/Internals/JavascriptObjectRepository.cs As you'll see there is no result = method.Description.Function(obj.Value, parameters);

amaitland avatar Sep 16 '14 04:09 amaitland

@amaitland I am using https://github.com/cefsharp/CefSharp/commits/JsBinding_WIP?

Yeah, the code is old I am now testing on new code.

DevToolsUrl now becomes "" in the newest JsBinding_WIP for my implementation, which is correct on old code.

qianlongzju avatar Sep 16 '14 09:09 qianlongzju

@jessicasco Now your using the new code is everything working? I'm not sure sure what you mean about DevToolsUrl are you seeing a problem?

amaitland avatar Sep 16 '14 10:09 amaitland

@amaitland yeah, I am the new code. DevToolsUrl is to be https://github.com/cefsharp/CefSharp/blob/JsBinding_WIP/CefSharp.WinForms/ChromiumWebBrowser.cs#L251 . It worked fine but now will be "".

qianlongzju avatar Sep 16 '14 10:09 qianlongzju

@amaitland I tried to run the CefSharp.WinForms.Example under 64-bit. But CefSharp.BrowserSubprocess crashes. Please help check.

qianlongzju avatar Sep 16 '14 10:09 qianlongzju

How are you calling DevToolsUrl it appears to work in both WinForms and WPF examples.

As for the 64bit sub process crash, the build targets hadn't been configured. Try again now.

amaitland avatar Sep 16 '14 11:09 amaitland

@amaitland 64bit works fine now. A lot of my app works fine on cefsharp3 now. But I have noticed a problem that if I do nothing for a while, the BrowserSubprocess exe will crash.

qianlongzju avatar Sep 21 '14 13:09 qianlongzju

@jessicasco What code branch are you using? Is it the latest version?

Also in your bin folder, does the debug.log file contain any information about the subprocess crash? You may need to change CefSettings.LogSeverity to LogSeverity.Verbose to get enough information.

Are you able to quantify a while?

There were some WCF timeout issues with a change merged here https://github.com/amaitland/CefSharp/commit/99040f9a1a4d4ec8028116b5ff4ce33e5f096fa4 that should hopefully fix them. Maybe unrelated, just something to consider.

amaitland avatar Sep 21 '14 13:09 amaitland

@amaitland Could you help check if CefSharp1 could be compiled successfully and please tell me your environment.

I am now trying your WCF merge now and hope it will work.

qianlongzju avatar Sep 22 '14 07:09 qianlongzju

@jessicasco For reference I've pushed a couple of packages to https://www.myget.org/F/amaitland-cefsharp/ There are packages for

  • WinForms x86 and x64
  • WPF x86 and x64

They haven't been very well tested, so I make no grantees. Simple way to install from nuget package manager console is: Install-Package -IncludePrerelease CefSharp.WinForms.x64 -Source https://www.myget.org/F/amaitland-cefsharp/

They include all the latest code in my branch

amaitland avatar Sep 22 '14 07:09 amaitland

Could you help check if CefSharp1 could be compiled successfully and please tell me your environment.

I don't really have anything to do with CefSharp1, what limited time I've got goes into CefSharp3

For that I compile with either VS2012 on Win7 or VS2013 on Win8.1

amaitland avatar Sep 22 '14 07:09 amaitland

You'll probably have to manually install cef.redist before installing my packages as the latest nuget one doesn't contain a x64 version. Install-Package -IncludePrerelease cef.redist -Version 3.1650.1562-pre0 -Source https://staging.nuget.org/api/v2/

amaitland avatar Sep 22 '14 13:09 amaitland

Official packages have been released to nuget.org

amaitland avatar Oct 10 '14 07:10 amaitland