直接nevigate打开https://www.paypal.com
出现invalid floating point operation的错误,同时页面中的连接就无法再在twebbrowser中访问了.
有办法解决这个错误么unit Unit1;interfaceuses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, OleCtrls, SHDocVw;type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    procedure FormCreate(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;var
  Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
try
   WebBrowser1.Navigate('https://www.paypal.com');
exceptend;
end;end.

解决方案 »

  1.   

    老问题了...大概的情况是,在使用一些浮点操作时,微软默认设计会抛出一系列的异常.这些异常按理说不应该阻止程序运行.但不知道为什么,delphi默认是截获后又把异常抛了出来,被系统截获就会影响程序运行了borland给的解决方法是,加一句Set8087CW(Longword($133f));来关闭这个机制. 你可以加在form的oncreate事件里