I've been developing with kinect XBOX 360 for a while. Today, after connecting a different kinect device (XBOX 360) i've started getting an error on the initalization line:
kinect.Initialize(RuntimeOptions.UseSkeletalTracking | RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseColor);
The error I was getting:
Failed in native DLL. HRESULT=0x8004022b.
and the stack trace showed:
at Microsoft.Research.Kinect.Nui.SkeletonEngine..ctor(Runtime mainNui, CINuiInstanceHelper nuiInstance)
I've already tried :
VFW_E_SAMPLE_REJECTED This sample cannot be rendered. 0x8004022B 555
I'm running win7 64 bit.
Try using the Kinect for Windows SDK 1.5. It's been out for a couple of weeks now.
The API should mostly be the same as in 1.0 beta, but you will have to change the names of some namespaces when using
them.
Also, you will still be able to use the Kinect for Xbox360 for development purposes, unless you want to use near mode for depth acquisition.
Like Chris Ortner said, you should switch to the full version as it is much more efficient. You can find it here. If you are fearing that you must convert all of your code, look here and here. If you are worried about converting code like getDisplayPosition
, see Converting Kinect Methods from Beta 2, to Version 1. If you need any more help converting, just ask! Hope this helps!
I had this error. It was nothing to do with drivers or versions.
The Kinect sensor uses a lot of the USB bandwidth, so it is essential to have it on its own USB controller. Try the different USB ports until it works. You can use the Device Manager to see which devices are on which controllers: View > Devices by connection.
Thanks a lot for your help.
I prefer not to change to kinect for windows to timelines. I was able to solve this issue thanks to this link which worked like a charm. The steps to resolve this issue were: 1.Uninstall all kinect drivers from all the USB ports. 2.Uninstall the kinect sdk. 3.Reinstall the Kinect SDK. 4.Disabled network adapter. 5.Plug in the kinect sensor.
The idea is to reinstall all the drivers and prevent it from obtaining drivers from Windows Update.
I appreciate your help.
Thanks, Oded
User contributions licensed under CC BY-SA 3.0