cinder/Cinder-Kinect — Issue #2: setVideoInfrared lock
Author: gaborpapp
Created: 2012-01-18 15:33:26+00:00
State: open

Adding
```mKinect.setVideoInfrared( true );
```
in the setup of kinectBasicApp.cpp sample right after the following line:
```mKinect = Kinect( Kinect::Device() );
```
makes the application non-functional. Most of the time the kinect images are not shown, and the application locks up on exit. Maybe a locking issue?

Forcing quit gives the following report on OSX 10.6.8 with latest git.

```
Thread 2ec1 DispatchQueue 100
User stack:
9 start + 53 (in kinectBasicApp) [0x2a75]
9 main + 176 (in kinectBasicApp) [0x34a0]
9 cinder::app::App::executeLaunch(cinder::app::App*, cinder::app::Renderer*, char const*, int, char* const*) + 158 (in kinectBasicApp) [0x223e4]
9 cinder::app::AppBasic::launch(char const*, int, char* const*) + 341 (in kinectBasicApp) [0x2452f]
9 -[AppImplCocoaBasic init:] + 311 (in kinectBasicApp) [0x289a7]
9 -[NSApplication run] + 821 (in AppKit) [0x924b61f3]
9 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 156 (in AppKit) [0x924f3dd6]
9 _DPSNextEvent + 847 (in AppKit) [0x924f4595]
9 BlockUntilNextEventMatchingListInMode + 81 (in HIToolbox) [0x98a65a3e]
9 ReceiveNextEventCommon + 354 (in HIToolbox) [0x98a65bb9]
9 RunCurrentEventLoopInMode + 392 (in HIToolbox) [0x98a65e04]
9 CFRunLoopRunInMode + 97 (in CoreFoundation) [0x9231e1f1]
9 CFRunLoopRunSpecific + 452 (in CoreFoundation) [0x9231e3c4]
9 __CFRunLoopRun + 8059 (in CoreFoundation) [0x92320a3b]
9 __NSFireDelayedPerform + 537 (in Foundation) [0x9a4f9369]
9 -[NSApplication terminate:] + 713 (in AppKit) [0x9272d167]
9 -[NSNotificationCenter postNotificationName:object:] + 56 (in Foundation) [0x9a4e505d]
9 -[NSNotificationCenter postNotificationName:object:userInfo:] + 128 (in Foundation) [0x9a4d7c50]
9 _CFXNotificationPostNotification + 186 (in CoreFoundation) [0x9233d16a]
9 __CFXNotificationPost + 947 (in CoreFoundation) [0x9233d763]
9 _nsnote_callback + 176 (in Foundation) [0x9a4e2db3]
9 -[AppImplCocoaBasic applicationWillTerminate:] + 36 (in kinectBasicApp) [0x27c84]
9 kinectBasicApp::~kinectBasicApp() + 181 (in kinectBasicApp) [0x3607]
9 std::tr1::_Sp_counted_base_impl, (__gnu_cxx::_Lock_policy)2>::_M_dispose() + 25 (in kinectBasicApp) [0x4a57]
9 cinder::Kinect::Obj::~Obj() + 35 (in kinectBasicApp) [0x40fb]
9 boost::thread::join() + 86 (in kinectBasicApp) [0x368bc]
9 boost::condition_variable::wait(boost::unique_lock&) + 155 (in kinectBasicApp) [0x386eb]
9 pthread_cond_wait$UNIX2003 + 73 (in libSystem.B.dylib) [0x966253f8]
9 __semwait_signal + 10 (in libSystem.B.dylib) [0x96623aa2]
Kernel stack:
9 semaphore_wait_continue + 0 [0x22a88f]
```