WebBrowser memory problem

后端 未结 3 987
悲哀的现实
悲哀的现实 2020-12-10 16:54

I have a .NET application that needs uses a WebBrowser to automatically navigate through a bunch of pages. But if I go to, for instance, Google and set Google I

3条回答
  •  -上瘾入骨i
    2020-12-10 17:18

    I think HtmlElement pnext is not released, since it's ComObject, and there may be a bug in Browser Control.

    Try pnext.Release or try Marshal.Release and get the instance of ComObject to release.

提交回复
热议问题