3.5   Graphical Applications

This section gives some general hints for developing graphical applications.

If you are using graphical user interface (GUI) frameworks, each dialog is managed by a user interface (UI) thread. The UI thread is responsible for updating the GUI and the execution of callbacks. This means that the GUI is blocked as long as the UI thread executes the callback. Therefore, callbacks should require as little time as possible.

If you are using HDevEngine, we recommend that you divide your programming tasks into at least two categories: image processing and visualization.

For image processing tasks that are initiated by a user action you should start a new thread that handles those tasks. As soon as the image processing is finished, the UI thread should fetch and display the results. For more information, please refer to our multithreading example program:

  %HALCONEXAMPLES%/c#/MultiThreading