C# WebBrowser Control System.AccessViolationException

后端 未结 8 2149
谎友^
谎友^ 2020-12-05 13:41

I have a program that uses the built in webbrowser control. At some point during the usage of this, I\'m not sure at what point, but it appears to be random, I get the foll

8条回答
  •  甜味超标
    2020-12-05 13:52

    Just a suggestion, I'm no expert on this but have used the WebBrowser a lot in previous applications, but why dont you write a function to wait 1 second before attempting to pass the browser anything and always check the readystate beforehand aswell. Might slow it down a bit but it should make it bullet proof. :)

提交回复
热议问题