C# WebBrowser Control System.AccessViolationException

后端 未结 8 2113
谎友^
谎友^ 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:57

    I encountered this exception at various occasions while trying to access WebBrowser.ReadyState and WebBrowser.Document.

    I was having the exceptions exclusively on Windows XP 32bit. After the other solutions didn't help, it appeared to be a threading issue. I surrounded any code blocks that accessed the web browser control with mutex locks, and that seemed to solve the problem.

提交回复
热议问题