10-30-2009 01:27 PM
When calling a sequence that calls into a .NET library, when the FolderBrowseDialog is displayed, the folder selection tree control is not displayed. When this is called from a .NET executable everything works fine. See attached. I am using C# 2008 and TestStand 4.2.
From .NET From TestStand
Solved! Go to Solution.
11-02-2009 09:06 AM
This might be an issue with the kind of thread that is displaying the dialog. Generally .NET UI code should be run from a STA (Single-Threaded Apartment) thread. You might have noticed the [STAThread] attribute on your main entry point in C# which does this for you in your .NET executable.
You can create an STA thread in TestStand by using the sequence call step. Select the "Use New Thread" Execution Option and check the "Use Single-Threaded Apartment" checkbox in the advanced settings dialog.
11-02-2009 02:54 PM