Handle your frames with caution...

Bruno Capuano, Friend of the Gallery, has a quick Kinect for Windows v2 tips, that might help you save you from pulling out your hair

[#KINECTSDK] Caution when you work with frames! (dispose objects correctly)

Hello!

Some time ago I wrote a post about the importance of properly destroy the objects of the KinectSdk when you close an app. The lesson today is similar, but bounded to work with a Frame.

For example, the following piece of code shows 2 ways of processing a FRAME with KinectSDK V2

image

The function between lines 1 and 19, used the frame within a using() and 2nd option does not. The strange thing is that the 2nd option does not give an error or anything. However when not destroyed the dmard, it never returns to process a new frame with what the Kinect information process is stopped for this application.

Lesson learned live!

Project Information URL: http://elbruno.com/2014/06/11/kinectsdk-caution-when-you-work-with-frames-dispose-objects-correctly/

Contact Information:




Tags:

Follow the Discussion

Comments Closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums,
or Contact Us and let us know.