How to avoid block code when ColorStream in called

43 Views Asked by At

I have a WPF application, it use a Kinect for traking skeleton, so I have this code

this.sensor.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);

If I run my application for many times and stop application within VisualStudio (debug terminator button) I have some trouble, the debug remains locked at this line code:

this.sensor.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);

as long as I removed USB cable of the Kinect device, which allows the debugger to go to the next line code.

Can we help me?

0

There are 0 best solutions below