I have a problem with finding an appropriate function. Now, the loop that I'm speaking about looks like this:
do
{ cameras[0].GrabOne(5000, ptrGrabResult);
Pyon::DisplayImage(1, ptrGrabResult);
::Sleep(1000);
} while( cin.get() != ' ' );
It is executed constantly only when i hold enter key.