none
Webrowser Leaks Memory RRS feed

  • General discussion

  • It seems conclusive from my tests and others, that there is a memory leak when using the WebBrowser Control

    Microsoft, do you intend to fix this?

    Wednesday, July 24, 2013 9:11 PM

All replies

  • Out of curiosity, what are the repro steps?
    Wednesday, July 31, 2013 4:35 PM
  • I just had a form with a webbrowser on it that navigates to any web site on load, then called the form and checked Garbage Collector (or any another means, if you like) for memory loss.

    Just navigating to about:blank lost around 40-50k each call. Given that my app navigates thousands of pages to do it's work, that soon adds up.

    Extra bits with GC are just what other forums had suggested to try.

    Dim Mem = GC.GetTotalMemory(True)

    Dim Dlg As New Dialog1

    Dlg.ShowDialog(Me)

    Dlg.Dispose()

    Dlg = Nothing 

    GC.Collect()

    GC.WaitForPendingFinalizers()

    GC.Collect()

    MsgBox(GC.GetTotalMemory(True) - Mem)





    Wednesday, July 31, 2013 7:12 PM