I have an API that i use to extract the image data from an IP camera. I convert the data into a byte array then process it. After processing i display it in a picture box then repeat the process again and again. I always get this message after it has iterated 450(approx) times in the debug mode and 800(approx) otherwise.
First a message box (warning) with the follow
No symbols are loaded for any call stack frame. The source code can not be displayed
Then a message in the debug window.
ContextSwitchDeadloack was detected
followed by
"The CLR has been unable to transition from COM context 0x1a1420 to COM context 0x1a1590 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, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations." I just dont understand the message, a bit of explaination would be helpful.

ContextSwitchDeadlock