TWebBrowser crashes with embedded Youtube clips

前端 未结 2 1729
南旧
南旧 2020-12-10 19:41

Here is my code:

type
  TForm1 = class(TForm)
    WebBrowser1: TWebBrowser;
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TO         


        
相关标签:
2条回答
  • 2020-12-10 20:01

    A bit more beautiful solution:

    Math.SetExceptionMask([exInvalidOp, exDenormalized, exZeroDivide, exOverflow,
      exUnderflow, exPrecision]);
    

    If I read documentation correct, Math.SetExceptionMask silences every exception mentioned.

    However, it is just cleaner and more beautiful version of @Arjen's approach.

    0 讨论(0)
  • 2020-12-10 20:02

    Try to disable temporarily FPU exception with Set8087CW(0x133f); info

    0 讨论(0)
提交回复
热议问题