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