KinectSensor.Open()System.InvalidOperationException [英] KinectSensor.Open() System.InvalidOperationException

查看:79
本文介绍了KinectSensor.Open()System.InvalidOperationException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误"方法在意外时间被调用"在Surface Pro 2上运行Windows 8.1现代应用程序时。 

I am getting error "method was called at unexpected time" while running Windows 8.1 modern application on Surface Pro 2. 

以下是完整的错误消息:

Here is the complete error message:

"方法在意外时间被调用(来自HRESULT的异常:0x8000000E"

"A method was called at an unexpected time (Exception from HRESULT :0x8000000E"

Innerexception:null

Innerexception: null

StackTrace:在WindowsPreview。来自APP_NAME.App..ctor的APP_NAME.Kinect.KinectInteraction..ctor() 

StackTrace : at WindowsPreview.Kinect.KinectSensor.Open()

的Kinect.KinectSensor.Open()

at APP_NAME.Kinect.KinectInteraction..ctor() 

注意:我从Application.xaml.cs调用KinectInteraction类 

NOTE: I am calling KinectInteraction class from Application.xaml.cs 

这是我尝试过:

- Kinect SDK示例工作正常。 

- Kinect SDK samples are working fine. 

- 此应用程序在安装少量更新之前运行正常。  ;

- This application was running fine before few updates got installed. 

- 我正在使用PublicPreview1409 SDK。

- I am using PublicPreview1409 SDK.

- 我也尝试过使用1409 SDK。

- I have tried using 1409 SDK as well.

任何关于此的指示都会非常有用。

Any pointers on this would be really helpful.

-Samarth http://shahsamarth.wordpress.com

-Samarth http://shahsamarth.wordpress.com

推荐答案

是您在项目中使用正确的Windows应用商店扩展?您是否在项目设置中定位了x86 / x64?

Are you using the correct Windows Store extension in the project? Have you targeted x86/x64 in your project settings?

http: //msdn.microsoft.com/en-us/library/dn799310.aspx

您的初始化与样本中提供的内容有何不同?你不能直接调用那个API,你是如何创建一个传感器实例来调用Open api的? SDK现在是最终版本,您不应该使用PublicPreview版本。

How does your initialization different than what is provided in the samples? You cannot call that API directly, how did you create an instance of the sensor to call the Open api? The SDK is now a final release, you should not be using PublicPreview versions.


这篇关于KinectSensor.Open()System.InvalidOperationException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆