today I have been struggling a bit with an app for the new KinectSDK v2 and after giving him a couple of minutes I came to the conclusion, like always: the error It was my fault.
I explain the detail, in previous post I have shown as initializing READERS for the body, camera or the IR. However I think that I didn’t have any example code of what you should do whenever we not use more an object. It’s basically what we learned with .net Fwk 1.0:
Make a Dispose() and then Null.
What seems patently obvious, with the KinectSDK V2 is quite important because we now have the ability to run multiple apps using the sensor at the same time. To allow this there is an app called KinectService which is in charge of “distributing” the information from the sensor to the other apps. If you create an app that does not correctly free resources of the sensor, what you’re doing is leaving extra work for KinectService… and well, you can imagine the rest.
“This is preliminary software and/or hardware and APIs are preliminary and subject to change“
Saludos @ Home