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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Long reading of the list of available scanners

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
Stalker4 Posted - Mar 07 2025 : 07:02:34
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 ?
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 07 2025 : 19:05:49
Hi

Unfortunately there is not a way to speed that up.

Nigel
Xequte Software
www.imageen.com