Sleep() in main thread
Posted: Tue Feb 01, 2011 3:56 am
I'm using V100:R2 camera, and MFC program.
I made program like this.
i) Initializing the cameras in main thread
ii) Making another thread, and getting the camera data by the thread
iii) On OnTimer, using the Sleep(100) command in the main thread
In this program, I can't get camera data in some frame.
Would you tell me advice to solve this problem, and would you tell me the reason why this program doesn't work correct?
Thanks.
I made program like this.
i) Initializing the cameras in main thread
ii) Making another thread, and getting the camera data by the thread
iii) On OnTimer, using the Sleep(100) command in the main thread
In this program, I can't get camera data in some frame.
Would you tell me advice to solve this problem, and would you tell me the reason why this program doesn't work correct?
Thanks.