LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

.Net File Open Dialog [ ShowDialog() ] freezes Labview

Solved!
Go to solution

I'm using the .Net File Open Dialog so I can have multiple filter patterns in my dialog. When I run the VI, it hangs at the ShowDialog() call. I can see this when I highlight execution. I've minimized everything, and the Open File Dialog is not being displayed anywhere.

 

If I try to Abort execution, nothing happens. If I close the VI, Labview hangs displaying the "Resetting VI: ..." dialog.

 

I'm running Vista Professional, Labview 2009, and using the System.Windows.Forms(2.0.0.0) .Net Constructor

 

Thanks for your help,

 

Kirk

0 Kudos
Message 1 of 3
(4,482 Views)
Solution
Accepted by topic author kmactavi
Not sure what you are doing since you did not post your VI. If I had to guess I'd say the issue is that the VI is not setup to run in the UI thread (VI Properties -> Execution), which is required for some .NET classes. Attached is an example I wrote a while ago.
Message 2 of 3
(4,471 Views)

That was the problem. Thanks!

 

Kirk

0 Kudos
Message 3 of 3
(4,445 Views)