While im de-buging my CodedUI code on VS 2015 i got this information dialog box.
This is because of im having some Thread.Sleep() lines all over the code and some of them contain more than 1 minute.
So the solution to resolve this was to unchecked the ContextSwitchDeadLock check box at
Debug>Exceptions>Manage Debugging Assistants>ContextSwitchDeadLock
The CLR has been unable to transition from COM context 0x6d2290 to COM context 0x6d24b8 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem,
This is because of im having some Thread.Sleep() lines all over the code and some of them contain more than 1 minute.
So the solution to resolve this was to unchecked the ContextSwitchDeadLock check box at
Debug>Exceptions>Manage Debugging Assistants>ContextSwitchDeadLock
No comments:
Post a Comment