Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample project throws exception when try to close the application #3

Open
abuseukk opened this issue Jul 31, 2014 · 4 comments
Open

Comments

@abuseukk
Copy link

Hello @joshuajnoble,

Yesterday I was able to run the simple project inside VS2013. The issue is when you press Esc or close the app it crashes from the ofxKinectCommonBridge. I don't have the source codes here in the office but maybe you can find the issue easily.

Regards,
Ivaylo

@cyrildiagne
Copy link

I'm facing the same issue but only with the x64 lib (crash when destroying the ofThread).
But the win32 version exits without crashing.

@joshuajnoble
Copy link
Owner

Can you guys provide me with a little more info on where it's crashing? I suspect it might be in how I shut down the ofxKCB but I want to make sure before I make changes and I'm currently without a a Windows 8 machine to test (not ideal, I know)

@cyrildiagne
Copy link

Hey sorry in my case the problem seems to come from the win64 poco libs as the crash is reproduced by the threadExample

@sachatkm9
Copy link

I ran into the same issue when running the simple project example.
I fixed it simply by calling kinect.stop() before the app closes:

void testApp::close(){
 kinect.stop();
}

This way you make sure that the kinect thread is stopped before the app closes.
Otherwise the main thread might destruct your kinect handle while the thread is still running and trying to access it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants