Libcef use 0x27F as Control Word, so I have a problem using CEF with Delphi
because Delphi use a different Control Word: 0x1372.
For exemple I have this error calling CefDoMessageLoopWork:
Exception EZeroDivide in module libcef.dll at 008E8C49, Floating point division by zero.
I can also have AV errors ...
Actually I do that to fix it:
- Code: Select all
{$IFNDEF CEF_MULTI_THREADED_MESSAGE_LOOP}
procedure CefDoMessageLoopWork;
var
cw: Word;
begin
if LibHandle > 0 then
begin
cw := Get8087CW;
Set8087CW($27F);
try
cef_do_message_loop_work;
finally
Set8087CW(cw);
end;
end;
end;
{$ENDIF}
I don't know how to interpret this problem.
I suspect this to be related with other strange random issues I have (images don't display ...)
If you change the Control Word of the cefclient application with Delphi one, you should be able to reproduce the problems I have.
I guess other languages could have the same problem.
regards
Henri