Hi Why you used Lock for threading? If you comment the Lock, the program work corectly again, What's reason you used Lock for capture and read frames?