Posts Tagged ‘MTA’


PowerShell Studio: Knowing when to use STA mode

Monday, March 9th, 2015 by David Corrales
Follow @SAPIENDavid Recently, on our forums, a user asked why certain controls didn’t function correctly or threw an error when he unchecked the STA option in PowerShell Studio. STA (Single Threaded Apartment) and MTA (Multi-Threaded Apartment) determine how a process manages legacy COM objects and their communication with multiple threads. I will not go into the detail, but you need not concern yourself with the inner workings of COM objects, other than to remember that STA is required for some of the GUI controls to function correctly. If you're interested in the details, see Processes, Threads, and Apartments in the…   More »