Search code examples
c#dllinitializationkinecthresult

Kinect Initialization error (Failed in native DLL. HRESULT=0x8004022b.)


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 :

  1. Reinstalling all kinect related drivers and restarting.
  2. Switching back to the old kinect sensor I was using.
  3. Reinstalling the kinect sdk (the version i'm using is : Microsoft Kinect 1.0 Beta2 SDK v.1.0.0.45
  4. The following link - http://social.msdn.microsoft.com/Forums/en-US/kinectsdk/thread/5b9ffac3-86c0-4147-a6c7-f8e4bbc73c56 - talks about finding the registry key but I couldn't understand how to do it.
  5. According to this link - http://msdn.microsoft.com/en-us/library/ms919477.aspx this is an error code:

    VFW_E_SAMPLE_REJECTED This sample cannot be rendered. 0x8004022B 555

is there a way I could use it to solve the problem?

I'm running win7 64 bit.


Solution

  • 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