Page 1 of 1

Duo and CameraSDK

Posted: Mon Dec 09, 2013 10:53 am
by Anaghir
Hi,

We just acquired a Duo Camera and we have some issues with our software which works perfectly with a Trio.
We use TT_Update() then TT_FrameMarkerCount() and TT_FramerMarkerX,Y,Z but with the Duo, only the 3 first frames return the marker count. The "markers" sample works correctly but not our project. Is there something we do wrong ?

Thank you

Re: Duo and CameraSDK

Posted: Mon Dec 09, 2013 1:16 pm
by beckdo
Are you loading a project or anything along those lines in your code? You might want to call TT_Initialize(), then TT_Update() until TT_CameraCount()==2 before proceeding through your code any further. Give that a try and see if it solves the problem with your application.

Re: Duo and CameraSDK

Posted: Tue Dec 10, 2013 6:54 am
by Anaghir
Thanks for your reply.
I am not loading a project because I only work with the markers.
I tried what you said. I have 2 cameras every time I call TT_Update() but still no markers and if I wait before doing TT_Initialize() and the rest of the treatment I don't event have the 3 or 4 frames of correct data.

Re: Duo and CameraSDK

Posted: Tue Dec 10, 2013 11:53 am
by beckdo
If you want to send your source code over to support@naturalpoint.com, I can review it and possibly locate what you are doing that is causing the problem.

Re: Duo and CameraSDK

Posted: Fri Feb 14, 2014 6:38 am
by Anaghir
Hi,

Sorry for the long delay.
I couldn't send you the code but I have found the problem.
I was creating my thread with CreateThread and it seems that those thread will have some stack issues when calling function from dlls that use crt functions (like strtok).
I resolved my problem by calling _beginthreadex which calls CreateThread but does some initialisation before hand.