1. Create a Windows Form with Typemock Racer enabled
2. Create two Button, Button1 and Button2
3. Attach a method to Button2 click, inside the method, type in the following code:
Thread thread = new Thread(button1.Hide);
thread.Start();
4. Run the Windows Form, click on button2.
5. This exception will come out:
The type initializer for 'Typemock.Racer.Core.ResolverService' threw an exception.
6. But if Racer is disabled, one will get this exception:
Cross-thread operation not valid: Control 'button1' accessed from a thread other than the thread it was created on.
It seems that Racer interferes with the threading code, even though it shouldn't.
________
Amateur Sex