Hi,
I run this code on the user's computer:
var
AcquireApis :TIEAcquireApis;
AcquireApis := [];
Include(AcquireApis, ieaTwain);
Include(AcquireApis, ieaWIA);
ImageEnMView.MIO.AcquireParams.FillListWithSources(ScannerComboBox.Items, AcquireApis);
In some cases, the “FillListWithSources” call may take quite a long time (up to several minutes).
In the course of finding out why it takes so long to generate the list of available scanners, it turns out that it is due to the WIA drivers.
If the “Include(AcquireApis, ieaWIA)” line in the code above is removed, the list of available scanners is loaded quickly.
As I understand, the long polling of WIA drivers for a scanner happens if the scanner is turned off or not connected to the user's PC at all.
Question: Is there any parameter in ImageEn that can limit the time of WIA scanner drivers polling ?