Overview
I am using chromium embedded framework (cef) on Delphi 2009, it is the latest release.
Error
I can use ExecuteFunctionWithContext
to successfully execute a JavaScript callback routine and I can supply it with arguments.
However, when I try and use TCefv8ValueRef.CreateObject(nil);
an access violation occurs in the libcef library.
Assumptions
- Pushing an argument to the JavaScript callback works for
TCefv8ValueRef.CreateString
and all the otherCefv8Value
types. - The
TCefv8ValueRef.CreateObject(nil)
function works fine when it is used as a return value for a chromium extension. (As detailed in the/demos/guiclient
demo for the Delphi CEF). - The
TChromium
object is held on the main form.
Possible Solutions and Musings
- I have tried using
TCefv8ValueRef.CreateObject(nil);
via anOnClick
event on the main form, this also produced a access violation. However,TCefv8ValueRef.CreateString('test');
will work fine.
Any help would be greatly appreciated.