When creating a new browser instance, after 4 calls the browser will not load the page.
Basically this recreates a crawler.
Code:
public void run()
{
IE browser = new IE();
while (!browser.Visible)
Thread.Sleep(200);
browser.GoTo(m_Urls[m_Count]);
while(browser == null)
Thread.Sleep(200);
while (browser.Html == null)
Thread.Sleep(200);
while (browser.Html.Length < 30)
Thread.Sleep(200);
Console.WriteLine(browser.Html);
Thread.Sleep(4000);
browser.Close();
m_Count++;
if (m_Count < m_Urls.Count)
run();
}
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Well, that does create the problem but if I move the "new IE()" to a member var it works. But the actual code is still giving me this problem.