Delphi XE2, TWebBrowser, float divide by zero
In Delphi 2010 and Delphi 2007 I am using Set8087CW on WebBrowserBeforeNavigate / WebBrowserDocumentComplete to prevent FPU errors inside ActiveX to cripple my application. But somehow this is not working in Delphi XE2, at least when in 64bit mode. When clicking links (any) I get "float divide by zero". (The initial loading of a website address or content into TWebBrowser works fine.) The callstack shows this to happen inside system32\D3D10Warp.dll (maybe used by IE9?) in response to TApplication.ProcessMessage (and some ??? inbetween the two) You will need to mask SSE exceptions on 64 bit