NuiStatus没有返回S_OK [英] NuiStatus not returning S_OK
问题描述
我正在为我的C ++代码添加一些健壮性,试图使用NuiStatus()来优雅地处理传感器的'丢失'。
I'm in the process of adding some robustness to my C++ code was attempting to use NuiStatus() to gracefully handle the 'loss' of the sensor.
根据如果一切正常,这个NuiStatus()应返回S_OK,如果没有则返回E_NUI_DEVICE_NOT_CONNECTED。
According to the documentation this NuiStatus() should return S_OK if all is well and E_NUI_DEVICE_NOT_CONNECTED if not.
我得到的返回值为-2097086443而不是S_OK。 奇怪的是E_NUI_DEVICE_NOT_CONNECTED是-2097086444。
I'm getting a return value of -2097086443 instead of S_OK. Curiously E_NUI_DEVICE_NOT_CONNECTED is -2097086444.
我可以反转我的逻辑并测试E_NUI_DEVICE_NOT_CONNECTED,但这不是重点,调用应返回S_OK,如文档所述。
I can reverse my logic and test for E_NUI_DEVICE_NOT_CONNECTED instead, but that isn't the point, the call should return S_OK as documented.
我也想知道为什么C#(或VB)KinectStatus属性似乎没有等效的C ++,它提供了更多关于连接的Kinect传感器的细节?
I was also wondering why there appears to be no equivalent C++ for the C# (or VB) KinectStatus property which gives much more detail on the connected Kinect sensor?
推荐答案
您使用的是哪个版本的SDK?可以返回许多不同的状态。
what version of the SDK are you using? There are a lot of different status that can be returned.
这篇关于NuiStatus没有返回S_OK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!