chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
Welcome to Typemock Community! Here you can ask and receive answers from other community members. If you liked or disliked an answer or thread: react with an up- or downvote.
0 votes
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
asked by nsoonhui (59.1k points)

1 Answer

0 votes
Hi Soon,

This indeed looks like a bug in the Racer, thanks for reporting it.
answered by ohad (35.4k points)
...