本机DLL失败。 HRESULT = 0x80080014

时间:2012-05-18 01:51:06

标签: c# wpf

用户代码未处理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;
            }
        }

1 个答案:

答案 0 :(得分:0)