Re: "One shot" mode in SampleGrabber doesn't work

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi, Thanks very much for your reply, not I understand where I am wrong. But I
don't want to add a message loop in my main program, so is there any way to
do such function without event or call back, or is it possible to warp a
message loop inside a class? any other options?

"Alessandro Angeli" wrote:

That is not the way to extract all frames: one-shot mode is
designed to take a snapshot once, e.g. to create a
thumbnail. To extract all frames: 1. do not use one-shot
mode; 2. do not enable sample buffering; 3. use a sample
callback; 4. fetch the sample this way (pseudo-code):


.