From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

What is Multihread apartment? how to solve this issue

Hi All,

 

i receive the error below,  how to resolve this issue if i want it to run at the same time?

 

Library function error (return value==-180)

The dialog cannot be displayed in a thread whose concurrency model is multithread apartment(MTA)

 

Thanks 🙂

0 Kudos
Message 1 of 3
(5,412 Views)

The threading model has to do with how events are processed in multithread applications,  mainly when ActiveX objects are involved: here you can find an explanation if you want to deep into it. Apparently you are running into this error because you are calling some file dialogue in a multithread application that is using the wrong model: look at the notes given in the help, this is for example the page for .

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(5,403 Views)

noted thanks for advice

 

0 Kudos
Message 3 of 3
(5,385 Views)