I created a program that uses the WebBrowser to fetch information online (Auto login and later bring the page information to the program). The program works perfectly, but it turns out that the program updates the information every 5 minutes and then ends up using the Navigate method every 5 minutes.
WebBrowser webBrowser1 = new WebBrowser();
webBrowser1.Navigate("www.google.com", false);
Above is an example. Every time I use the Navigate method the memory increases and no matter what I do it does not decrease. I tried to use the Dispose method, I tried to delete the control ... All to no avail. NOTE: Using Dispose memory decreases, but there is always a little extra left in memory and, for that, it still accumulates memory.
Would anyone know of any way to avoid this increase in memory with every use of the Navigate method?