Skip to content

Graphical applications🔗

If you are using GUI frameworks, each dialog is managed by a 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 HALCON Script Engine, 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, see the multithreading example program: %HALCONEXAMPLES%/c#/MultiThreading