# Revision history [back]

The thread 0x9bc has exited with code -1 (0xffffffff).

look at your code, it's probably one of those:

   if (FAILED(hResult)){
std::cout << "Error : GetDefaultKinectSensor" << std::endl;
return -1;
}


(try to give them a disinctive return vale, so you can see, which one ecatly was triggered)

(also, maybe try to run your exe from cmdline (not from ide), so you can see, what got printed to stdout, you missed the message, because the window was closed immediately after the error)