Status off? Exceptions!

Is there a better way to query the stick? I need the status that the stick is 100% off. Unfortunately I sporadically exceptions. “Device is not connected”

do
{
Thread.Sleep(50);
Stick.GetColor(out rRM, out gRM, out bRM);
} while (rRM > 0 || gRM > 0 || bRM > 0);

Hey Ben,
I´m not sure how excactly your complete code looks like, but maybe you can try to put your code into a IF condition:

if (Stick.OpenDevice()) 
{
   // your code
}

This should avoid trying to get the color from a not connected device.

Hi P0ke,

I have! I think I have a timing problem because I work with several threads. Now I have something screwed on it. just take a look.