- Code: Select all
#
# Fatal error in ../../v8/src/full-codegen.cc, line 1584
# CHECK(!fun_template.IsEmpty()) failed
#
==== C stack trace ===============================
1: ??
2: ??
...
If CefRegisterExtension is not implemented, then Browser starts without problems. If implemented there is only a empty (grey background) window.
- Code: Select all
std::cout << "==> OnWebKitInitialized" << std::endl;
std::string app_code =
"var app;"
"if (!app)"
" app = {};"
"(function() {"
" app.sendMessage = function(name, arguments) {"
" native function sendMessage();"
" return sendMessage(name, arguments);"
" };"
" app.setMessageCallback = function(name, callback) {"
" native function setMessageCallback();"
" return setMessageCallback(name, callback);"
" };"
" app.removeMessageCallback = function(name) {"
" native function removeMessageCallback();"
" return removeMessageCallback(name);"
" };"
"})();";
if(CefRegisterExtension("v8/app", app_code, NULL))
{
std::cout << "==> CefRegisterExtension" << std::endl;
}
else
{
std::cout << "==> CefRegisterExtension error" << std::endl;
}
- Code: Select all
AppShellExtensionHandler::Execute()
Edit: Found the problem -.-"
It should be:
- Code: Select all
if(CefRegisterExtension("v8/app", app_code, new AppShellExtensionHandler(this)))