none
Two processes, two kinects and my friend LockRect. RRS feed

  • Question

  • Hey guys,

     

    I'm currently working with two Kinects functioning across two processes.

     

    When I step through the master process which spawns the children (which instantiate their own Kinects), nothing goes wrong. I think it's because I'm giving them enough time to do their thing.

     

    However, when I run my program at full speed, it creates both processes which almost immediately crash.

     

    The line which they both crash on is the following:

     

    NUI_IMAGE_FRAME imageFrame;
    
    
    //SNIP...
    
    
    INuiFrameTexture * texture = imageFrame.pFrameTexture;
    NUI_LOCKED_RECT LockedRect;
    hr = texture->LockRect(0, &LockedRect, NULL, 0); //THIS ONE
    


    The line with the LockRect method above fails on both individual processes. Is there something that I've done wrong here. Is there some kind of multi-kinect version of this that actually works?

    Thanks!

    Wednesday, January 18, 2012 5:33 AM