ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Long reading of the list of available scanners
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Stalker4

Ukraine
54 Posts

Posted - Mar 07 2025 :  07:02:34  Show Profile  Reply
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 ?

xequte

38873 Posts

Posted - Mar 07 2025 :  19:05:49  Show Profile  Reply
Hi

Unfortunately there is not a way to speed that up.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: