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
|
|
|