Closed atifaziz closed 6 years ago
HtmlNodeSelection.CachableCompile throws an instance of NullReferenceException when called from any secondary thread, as demonstrated below:
HtmlNodeSelection.CachableCompile
NullReferenceException
static void Main() { void Test() { Console.WriteLine("Running on thread #" + Thread.CurrentThread.ManagedThreadId); HtmlNodeSelection.CachableCompile("p"); } Test(); // succeeds var t = new Thread(Test); t.Start(); // fails t.Join(); }
HtmlNodeSelection.CachableCompile
throws an instance ofNullReferenceException
when called from any secondary thread, as demonstrated below: