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
 Getting list of scanners is slow
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pssien

10 Posts

Posted - May 14 2015 :  02:38:33  Show Profile  Reply
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.

xequte

38514 Posts

Posted - May 14 2015 :  16:02:12  Show Profile  Reply
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
Go to Top of Page

pssien

10 Posts

Posted - May 15 2015 :  04:18:16  Show Profile  Reply
Problem solved, was a network scanner not pertainig to the actual network, once deleted now it is fast enough.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: