08-30-2017 06:31 AM
I am reading LabVIEW Connectivity course, where it states the differences between thread-safe and thread-unsafe functions. As I know, it is recommended to use thread-unsafe functions in UI Thread. Please tell me if I'm right and why shouldn't run the in any thread.
Best Regards
Edgar
Solved! Go to Solution.
08-30-2017 07:11 AM
Thread unsafe functions are not made to be ran by multiple threads at the same time. This can due to many reasons, most commonly because of stored memory in the dll could be corrupted by multiple threads reading and writing from/to it. Therefore, you force the functions to run synchronously by making them run in a dedicated thread. The UI thread is the easiest one to do this with.