Home › Forums › TWAIN Classic › long twain source acquisition
- This topic has 2 replies, 2 voices, and was last updated 8 years, 1 month ago by coco.
- AuthorPosts
Hi, i’m new to twain driver, i must develop a source for a scanner who take 5-10 seconds for an acquisition.
When the scanner take ~5 seconds the application is mark as “does not respond”.
How can i inform the application i’m still in acquisition ?Thanks.
This is Windows behavior. If an application’s message loop is unresponsive to the operating system for more than a certain number of seconds the “(not responding)” message is added to the application’s title bar.
A well designed TWAIN application separates TWAIN calls from the main message loop. A well designed TWAIN driver responds to TWAIN calls as quickly as possible. However, TWAIN calls are blocking by nature, so if a particular operation takes a long time there’s nothing the driver can do about it.
Short answer, this sort of problem can only be fixed in application code…
Thanks!
- AuthorPosts