Delphi WebBrowser Control opens part of the website "Invalid floating point operation" resolved

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.