1

The Kinect SDK throws an access violation exception when opening the NuiImageStream. I have checked and all pointers are valid; the exception is thrown not on my thread; but on a background thread being ran by the Kinect SDK. Any ideas?


int _tmain(int argc, _TCHAR* argv[])
{
    INuiSensor* sensor;
    NuiCreateSensorByIndex(0,&sensor);
    HRESULT ps = sensor->NuiInitialize(NUI_INITIALIZE_FLAG_USES_DEPTH_AND_PLAYER_INDEX|NUI_INITIALIZE_FLAG_USES_COLOR|NUI_INITIALIZE_FLAG_USES_SKELETON);
    HANDLE mvent = CreateEvent(NULL,FALSE,FALSE,NULL);
    HANDLE streamHandle;
    HRESULT ur = sensor->NuiImageStreamOpen(NUI_IMAGE_TYPE_COLOR,NUI_IMAGE_RESOLUTION_640x480,0,2,mvent,&streamHandle);

Liam McInroy
  • 4,339
  • 5
  • 32
  • 53
bbosak
  • 5,353
  • 7
  • 42
  • 60

1 Answers1

0

Re-installing the SDK fixed the problem.

bbosak
  • 5,353
  • 7
  • 42
  • 60