static void Main(string[] args) { try { using (var kinect = new KinectSensor()) { using (var stream = new KinectImageStream()) { } Thread.Sleep(2000); } } catch (System.Runtime.InteropServices.COMException ex) { Console.WriteLine(ex); } }
static void Main(string[] args) { try { using (var kinect = new KinectSensor()) { using (var stream = new KinectImageStream()) { } Thread.Sleep(2000); } } catch(System.Runtime.InteropServices.COMException ex) { Console.WriteLine(ex); } }