Click or drag to resize

DeviceThreadingEnabled Property

Gets or sets a value indicating whether to perform the scanning in a separate thread. See the remarks below for threading limitations.

Namespace:  Atalasoft.Twain
Assembly:  Atalasoft.DotTwain (in Atalasoft.DotTwain.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
public bool ThreadingEnabled { get; set; }

Property Value

Type: Boolean
A value indicating whether the scanning will run in a separate thread.
Remarks

In order for threading to be enabled, the following items are required:

The ModalAcquire property must be set to false.The parent control provided to the Acquisition object must derive from System.Windows.Forms.Control. If the parent is set to null (Nothing in VB), DotTwain will create a compatible hidden window: Be aware that some drivers will fail to function when the window is hidden.The driver must not be WIA.

NOTE: To run the scanning in a separate thread, the Device will be closed and a new Device instance will be created for scanning in the worker thread: This is required by the TWAIN specification. You will not be able to access any device properties or methods during the scan and will have to re-open the device after the scan if access to properties or methods are needed.

See Also