DepthStream.OpenNextFrame在我的应用程序中抛出错误,但不是Microsoft示例 [英] DepthStream.OpenNextFrame throwing error in my app, but not Microsoft example

查看:62
本文介绍了DepthStream.OpenNextFrame在我的应用程序中抛出错误,但不是Microsoft示例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好。

我一直在修改BasicInteractions-WPF示例(v1.6 SDK),并将一些Silhouette代码移到我的应用程序上。  ;我昨天测试了它并且它起作用了。 今天,当我调用DepthStream.OpenNextFrame(15)时,我遇到了一个疯狂的长错误。 
我不认为我改变了什么......我不记得这样做了,但是现在弹出:

I have been tinkering with the BasicInteractions-WPF example (v1.6 SDK), and moved some of the Silhouette code over to my app.  I tested it yesterday and it worked.  Today I get a crazy long error when I call DepthStream.OpenNextFrame(15).  I don't think I changed anything... I can't remember doing so, but this now pops up:

Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Kinect.Interop.INuiFrameTexture'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{13EA17F5-FF2E-4670-9EE5-1297A6E880D1}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

当我运行BasicInteractions-WPF应用程序时,一切都很好。 它就在我的应用程序中。

When I run the BasicInteractions-WPF app, everything works great.  It is just in my app.

任何帮助都是追踪这个问题非常感谢!

Any help is tracking down the problem is greatly appreciated!

推荐答案

你好ECM,

我遇到了同样的异常,我注意到当我调用API
时会发生这种情况

I am experiencing the same exception and I noticed that this is happening when I call the API

CoordinateMapper.MapColorFrameToDepthFrame当我试图从轮询方法OpenNextFrame到事件方法"this.sensor.DepthFrameReady + = sensor_DepthFrameReady;"

CoordinateMapper.MapColorFrameToDepthFrame and when I am trying to move from the polling approach OpenNextFrame to event approach "this.sensor.DepthFrameReady += sensor_DepthFrameReady;"

我正在尝试调查此问题。不确定这有助于您或(如果您解决了问题)您可能想要分享您的经验。

I am trying to investigate the issue atm. not sure this helps you or (in case you solved your issue) you may want to share your experience.

谢谢


这篇关于DepthStream.OpenNextFrame在我的应用程序中抛出错误,但不是Microsoft示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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