442 Views
What is a race condition you say? Well, simply put, it's when two or more threads race to an event or line of code. Sometimes one thread will win the race, and sometimes the other thread will. What this comes down to is that this inconsistent behavior can cause some strange and unexpected results.
It looks like the Cancelled flag of RunWorkerCompletedEventArgs is not a reliable way to check the Cancelled status.