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
 Getting list of scanners is slow

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
pssien Posted - May 14 2015 : 02:38:33
Getting the list of scanners on a PC is slow, taking about 6 seconds on mine every time I load the scan form.

I am thinking about two strategies to minimize this time, is there any of the two feasible:

1. As the user losts some seconds looking at the parameters to use, is it possible to use a Thread for loading the scanner list, and there is any demo code for it.

2. As the scanner list for a PC is not changing every day, is there any way to save this scanner list (or the complete string that I get when using in the AllAcquire demo), and select the scanner from that list instead.
2   L A T E S T    R E P L I E S    (Newest First)
pssien Posted - May 15 2015 : 04:18:16
Problem solved, was a network scanner not pertainig to the actual network, once deleted now it is fast enough.
xequte Posted - May 14 2015 : 16:02:12
Hi

Six seconds is slow. How many devices are on your system? It is the communication with one device in particular that causes the slowness? What APIs are you using, Twain, WIA and/or WPD?

Have you tested the app on another PC (with different devices)? Is it just as slow there?

You might want to store the list of device names to present to the user (with a refresh button). When the acquisition starts update the scanner list and ensure the selected scanner is still available. This would delay the slowness until when it is expected.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com