22/04/2009

SmartGWT and Delphi’s TWebBrowser

Posted in SmartGWT tagged , , , at 14:37 by vanje

Delphi’s TWebBrowser component is a convenient way to embed web contents into a Win32 executable. If the web content is a SmartGWT application there are some constellations where the TWebBrowser component crashes with a floating point exception.

The solution is to configure the floating point processor in your DPR file:

// ...
begin
  Set8087CW($133F); // <--

  Application.Initialize;
  Application.CreateForm(TForm1, Form1);
  Application.Run;
end.

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.