The program hangs when TMSFNCWebBrowser components are used in two forms

If only one FNCWebbrowser is used in the application, the application behaves inconspicuously.

But if another FNCWebbrowser component is used in a second form, it behaves conspicuously. The problem also exists if, for example, the TMSFNCWXHTMLMemo is used, but in the example I limit myself to the browser.

If only in the main form one or more FNCWebbrowser component(s) is/are used no problems occur - the response times are always ok for me.

Only when the component is also used in a second form, delays occur.
The following behavior occurs for me (sometimes only one of the two):

  • The calling form can be served after closing the called form only after several seconds.
  • After clicking the "X" (close) the program terminates only after a few seconds.

I have attached a minimal example project. (2.5 MB)

Can this problem be fixed?

The cache is shared and therefore it takes a while to clear the cache. If you don't wan't this, set a unique folder name for each instance:

procedure TForm1.FormCreate(Sender: TObject);
  TMSFNCWebBrowser1.CacheFolderName := '1';
procedure TForm2.FormCreate(Sender: TObject);
  TMSFNCWebBrowser1.CacheFolderName := '2';

With this approach, the delays are gone :-)
Many thanks

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.