Friday, November 6, 2015

ForceInfraredEmitterOff giving compile error

We all need to debug our applications. When developing applications with Kinect devices also we are going to debug our application. But when when we stop debugging using the VS (Visual Studio) the IR (Infrared) light of our Kinect will be still on.
In order to stop this there is a property called 'ForceInfraredEmitterOff'. This accept boolean value (true or false). Read more on this from here
We can set this to 'true' to forcefully turn off the IR light when we stop the debugging in VS.

But some of you like me will experience the application will not compile and it will give a compilation error when this property is defined.
The reason for this is you are using a Kinect device which use for XBOX 360.
The XBOX 360 Kinect device not support this property and this property is for Kinect for Windows devices.

So if your XBOX 360 Kinect device's IR light is still on when you stop the debugging, you can run the program again and close it (using the application close button). This will then turn off the IR light with the other pipelines as well.

No comments:

Post a Comment