crash - How do I get TWebBrowser in Delphi XE2 to run? -


the twebbrowser component in delphi xe2 seems buggy. there sort of code have run in order instantiate in special way?

  1. create new delphi project
  2. drop twebbrowser component onto form.
  3. in form1.formcreate() call webbrowser1.gohome (to google).

if compile 32-bit , go specific webpages error messages. google (ncbi nucleotide blast) , click first link.

in addition these javascript errors if click link opens in new window, opens in ie (a separate application).

the 64-bit version seems more broken. going same site (ncbi nucleotide blast) entire program crashing due 'divide_by_zero' error.

regarding floating point exceptions, twebbrowser expects operate floating point exceptions masked. looks using delphi default floating point settings , have exceptions unmasked. suspect if mask exceptions problems disappear.

do so:

setexceptionmask(exallarithmeticexceptions); 

and others have said, silence javascript popups setting silent true.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -