I have some experience with this camera.There are some tips.
1.First step :You should make sure you open()
camera.
2.Second step:useStartGrabbing
or GrabOne
to let camera strat grabbing image,then make sure camera.IsGrabbing(),use while (camera.IsGrabbing())
3.Thrid step:if camera.IsGrabbing()==true,usecamera.RetrieveResult( 5000, ptrGrabResult, TimeoutHandling_ThrowException );
,ptrGrabResult is where image and all data stored.
4.Fourth step: if (ptrGrabResult->GrabSucceeded()==ture)
,use const uint8_t* pImageBuffer = (uint8_t*) ptrGrabResult->GetBuffer();
to get the image buffer,that's all.
If you can show more detail about your code,it will be more easy to help you figure out a solution.