Hello All, I have written a program in cpp which takes image form camera and save it in a folder. There is another program which reads the save image form the folder and do some processing on the image. My problem is sometime i get only half image saved and the other is blank. After the above mentioned issue i am not able to fetch any image from the camera and also my thread breaks.