Hello
I am encountering a problem with webkit on Lazarus qt
When I try to execute a JavaScript function with evaluateJavaScript, I get an access violation error if I don't trap, with try - except
Of course, I call the function when DOM has already been created
Example
freepascal code:
param:='Hello';
parameter:=Format('foo("%s")',[param]);
QWebFrame_evaluateJavaScript(QWebFrame,nil,@parameter);
javascript code:
function foo(param){
alert(param);
}
I am always getting an access violation error and the whole application crashes
But if I trap like this:
try
param:='Hello';
parameter:=Format('foo("%s")',[param]);
QWebFrame_evaluateJavaScript(QWebFrame,nil,@parameter);
except
//trap errors
end;
everything is working as it should, with no errors and crashes
However I am not satisfied with this solution because I am bypassing the problem. Does anybody know about this?
Thank you