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?
- create new delphi project
- drop twebbrowser component onto form.
- 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
Post a Comment