-2

用户代码未处理 InvalidOperationException。

本机 DLL 失败。HRESULT=0x80080014。

当我尝试运行程序时产生了错误。错误代码以粗体显示......

public PoseViewModel()
        {
            if (!IsInDesignMode)
            {
                _leftHandImage = DefaultleftHand;
                _rightHandImage = DefaultrightHand;
                _skeletons = new List<SkeletonData>();
                _runtime = new Runtime();

                _runtime.SkeletonFrameReady += RuntimeSkeletonFrameReady;
                _runtime.VideoFrameReady += RuntimeVideoFrameReady;
                **_runtime.Initialize(RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseColor);**
                _runtime.VideoStream.Open(ImageStreamType.Video, 2, ImageResolution.Resolution640x480, ImageType.Color);
                Messenger.Default.Register<CommandMessage>(this, ProcessSpeechCommand);
                SpeechController.Initialize();
                //IsTracking = true;
            }
        }
4

1 回答 1

0

您的 Kinect 未连接到您的 PC:http ://social.msdn.microsoft.com/Forums/en-CA/kinectsdknuiapi/thread/2e5c176d-4b84-4749-b010-5e1f7fd14bd1

于 2012-05-18T02:08:23.493 回答