Using GeckoFX in a multithreaded application

后端 未结 2 1463
谎友^
谎友^ 2021-01-24 08:27

I\'m having issues grasping how exactly to handle threads when using GeckoFX- it seems to throw errors constantly when trying to use the GeckoWebBrowser in other threads.

<
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-24 09:02

    This will solve your prob, put it at the end of your nav request:

    myGeckoFxBrowser.Navigate("about:blank");
    myGeckoFxBrowser.Document.Cookie = "";
    myGeckoFxBrowser.Stop();
    

提交回复
热议问题