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