LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Asynchronous Call and Forget.vi and MessageBoxW (user32.dll)

Solved!
Go to solution

I have a problem.  I want to use the same type of structure that in "Asynchronous Call and Forget.vi".

Call and Forget.jpg

 

 

There is an image of my VI (Message Box.vi).

Call and Forget 2.jpg

The VI wait at the "Close reference" until I select OK or Annuler (cancel).  This is not the expected behavior.  If I disable the "Close reference"  I have the expected behavior (renaming the buttons properly).

Call and Forget 3.jpg

 

What I am doing wrong with the asynchronous call ?

0 Kudos
Message 1 of 3
(3,456 Views)
Solution
Accepted by J-M

Looks like Close Reference wants the root loop and your dialog is blocking it until it is finished.   I assume that Run in the UI thread is selected in the CLFN for the MessageBoxW function, try changing it to Run in any thread

Message 2 of 3
(3,450 Views)

Thanks Darin!!!

0 Kudos
Message 3 of 3
(3,443 Views)