Exemple #1
0
        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);
            }
        }
Exemple #2
0
        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);
            }
        }