VintaSoft Twain ActiveX Discussions
Questions, comments and suggestions concerning VintaSoft Twain ActiveX.
Board index < VintaSoft Twain < VintaSoft Twain ActiveX Discussions
procedure TfmCheckScan.tmFeederLoadedTimer(Sender: TObject);
begin
tmFeederLoaded.Enabled := False;
Application.ProcessMessages;
if VSTwain1.FeederLoaded = 1 then
VSTwain1.Acquire;
else
tmFeederLoaded.Enabled := True;
end;
I save the file and reset the timer in PostScan. Two problems -- 1) every 5 scans or so it takes over a minute for the scanner to scan, then the next scan it works fine; 2) there is a memory leak.Could you answer my question about AquireModal? If I start a while loop, will it wait until a page is placed in the feeder or will it generate an error and exit the loop if there is no page in the feeder?In most cases this depends of the scanner, some scanners will show dialog "No paper", etc. Please try to use the AcquireModal method and let me know results.