Page 1 of 1

Update to CEF 3.3239.1709.g093cae4

Posted: Fri Dec 22, 2017 11:09 am
by salvadordf
Hi,

The latest CEF3 update fixed the JavaScript dialogs access violation and some other bugs.

Please, download the updated version of CEF4Delphi with the latest binaries :

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Fri Dec 22, 2017 11:02 pm
by snoop
Hello. I updated and have problems in this version.
I updated before and previous versions all worked without any changes
Now seems like browser is not initializing.
chromium.Initialized is always false. So loading pages and further actions dont work. Im using chromiumparentwindows. Browsers are blank white, but nothing works
I updated library files as needed of course. No errors at start.

UPD: some more info. I checked 3.3239.1700.g385b2d4 version - doesnt work too (same white screens, no loading)
Also, I tried to wait even more time before and after creating browser. Still deosnt help.
previous installed was 3.3202.1694.gf061c23
worked fine!

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Sat Dec 23, 2017 8:00 am
by salvadordf
Hi,

Please try to run the SimpleBrowser demo. If that demo works, you may need to add a timer to your application.

The timer is used in the latest CEF4Delphi versions as a simple way to call CreateBrowser when GlobalCEFApp.GlobalContextInitialized is True.

Make sure you copied all the files and directories inside the Release and Resources. The latest CEF binaries have some subdirectories that have to be copied to the directory of your application's EXE. The directory with your application should look like this :
Image

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Sat Dec 23, 2017 1:37 pm
by snoop
sorry but I Said that I tried to wait more and even timer. All libraries are copied as needed
I tried simple browser and it is stucked at initializing too. White browser, nothing more.
I reverted back and checked again - 1694 version works fine.

Also, some updates before, in TCefStringMultimapOwn
U put procedure Append(const Key, Value: ustring); virtual;
in PROTECTED and it doesnt work for some reason, gives an error when compiling!. ([DCC Error] main.pas(3283): E2362 Cannot access protected symbol TCefStringMultimapOwn.Append)
I moved it to public declarations and now it works

Image

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Sat Dec 23, 2017 3:48 pm
by salvadordf
What Delphi version do you use ?

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Sat Dec 23, 2017 4:00 pm
by snoop
Im using Delphi 2010. working on windows 10

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Mon Dec 25, 2017 9:08 pm
by snoop
WWebber wrote: Sun Dec 24, 2017 1:35 pm Good to see others are also still using Rad2010. This is the most stable IDE since V5.02. I hope there will still be support for this platform!
There is! Just this version of chromium is bugged

So, any help here? I need to update browser in my program.

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Tue Dec 26, 2017 8:53 am
by salvadordf
I'll take a look as soon as I can.

It's Christmas and family events take priority these days.
Besides, there's a new BriskBard version coming really soon that takes time too.
Remember that I only have a Delphi Starter license and I'll have to ask for some favors to test your problem in Delphi 2010.

Re: Update to CEF 3.3239.1709.g093cae4

Posted: Thu Dec 28, 2017 3:40 pm
by salvadordf
Hi,

Sorry for the delay.

I have the results of the latest CEF4Delphi tests in Delphi 2010 and it works correctly.

The tests where done without Delphi updates and apart from some warnings about AnsiString to String conversions CEF4Delphi was compiled and installed correctly.

4 demos were compiled and tested without problems : SimpleBrowser, MniBrowser, MDIBrowser and ExternalPumpBrowser.
All those demos loaded google.com correctly.

These results and the TCefStringMultimapOwn compilation error leads me to believe that there might be something wrong in your Delphi installation.

As you can see in the commit history for the uCEFStringMultimap.pas file, the append procedure has always been in the protected section :
https://github.com/salvadordf/CEF4Delph ... ltimap.pas

In fact, DCEF3 defined that procedure in the protected section too :
https://github.com/hgourvest/dcef3/blob ... ceflib.pas

Maybe you used a ICefStringMultimap variable before and now you are using a TCefStringMultimapOwn variable.

Please, try these :
  • Uninstall CEF4Delphi, close Delphi, delete the BPL files and then install CEF4Delphi again. Test SimpleBrowser with all the CEF3 binary files. Don't delete locale files or anything else. Copy all of them before testing the demo.
  • If the previous solution didn't work, uninstall all Delphi components, close Delphi, delete all custom BPL files and install CEF4Delphi again.
  • If the previous solution didn't work, uninstall Delphi and make sure all BPL files are deleted before installing Delphi and CEF4Delphi again.
  • If the previous solution didn't work, create a virtual machine, install Windows, Delphi and CEF4Delphi.