I notice a memory problem when I leave the application for a long time. Actually, I am getting a memory exception. I try to understand what the problem is, and I was clueless until I let it run again, and I notice
I get a leak in this line every time html.LoadHtml(a_few_k_of_html);. I suspect the HtmlAgilityPack is leaking. I tried wrapping it when using and calling dispose, but that doesn't exist. This happens not only on this line every time, but I remember that I change several areas to use HtmlAgilityPack instead of parsing html with a regular expression
How can I deal with this memory problem without modifying the HtmlAgilityPack itself?
user34537
source
share