IC Imaging Control .NET

refenum.EventExecutionMode

refenum.EventExecutionMode

The EventExecutionMode enumeration describes the possible execution modes of an event, such as the ICImagingControl.ImageAvailable event.
Name Description
MultiThreaded The event is executed on a thread provided by IC Imaging Control. It is not possible to access UI controls from this thread. Trying this will generate an InvalidOperationException. If this execution mode is in use, then Delegates must be used to access controls on the form.
Invoke The event is executed on the UI thread that owns the ICImagingControl instance. Other UI controls can be accessed from this thread. However, if an exception occurred, the debugger does not break. Instead, the text of the exception is written to the debug output window. If this execution mode is in use, then no Delegates must be used to access controls on the form.
AsyncInvoke The event is executed on the UI thread that owns the ICImagingControl instance. Other UI controls from this thread. However, if an exception occurred, the debugger does not break. Instead, the text of the exception is written to the debug output window. If this execution mode is in use, then no Delegates must be used to access controls on the form. When using the AsyncInvoke event execution mode, the event source does not wait until the event has been handled. This implies that more events of the same type can be queued. An application using this mode should not perform time consuming computations in frequently occuring asynchronuously executed events.
See also: ICImagingControl.ImageAvailable, ICImagingControl.ImageAvailableExecutionMode

<< Enumerations

Get in touch with us


About The Imaging Source

Established in 1990, The Imaging Source is one of the leading manufacturers of industrial cameras, frame grabbers and video converters for production automation, quality assurance, logistics, medicine, science and security.

Our comprehensive range of cameras with USB 3.1, USB 3.0, USB 2.0, GigE interfaces and other innovative machine vision products are renowned for their high quality and ability to meet the performance requirements of demanding applications.

Automated Imaging Association ISO 9001:2015 certified

Contact us