Delphi WebBrowser Control opens part of the website "Invalid floating point operation" resolved
Embeddedwbwebbrowserdelphi
Recently use EMBEDDEDWB control to do browser-related applications, found that some Web pages as long as the opening will be a "Invalid floating point Operation" Exception (after the Exception dialog box, the browser is not responding), and the program is just a sentence
WebBrowser1.Navigate (Edit1.text);
It appears that many Web pages that contain Silverlight elements are opened with this bug. And the point is, the bug tip is completely confusing, with wood and!!!!!.
Think of the solution, so Google, the conclusion is as follows:
1, many netizens have met the same problem
2, Borland official explanation please click here (I can't open it)
3. Presumably, when using some floating-point operations, the Microsoft Default design throws a series of exceptions. These exceptions should not prevent the program from running. But do not know why, Delphi by default is intercepted after the exception is thrown out, the system intercepts will affect the operation of the program. Borland gives the solution is, add a sentence
SET8087CW (Longword ($133f));
To close this mechanism. You can add the OnCreate event to the form.
Although the problem has been solved, but do not understand why, seek expert guidance.
Reference:
Http://docs.embarcadero.com/products/rad_studio/delphiAndcpp2009/HelpUpdate2/EN/html/delphivclwin32/System_Set8087CW.html