Posted on 2004-09-24
I have an application that must use the MTAThreadAttribute. My problem is that it appears that I cannot use the Windows Media Player activex control in a MTAThreaded application. I keep getting the following error:
An unhandled exception of type 'System.Threading.ThreadStateException' occurred in system.windows.forms.dll
Additional information: Could not instantiate ActiveX control '6bf52a52-394a-11d3-b153-00c04f79faa6' because the current thread is not in a single-threaded apartment.
Is there any way around this problem????? Does the Media Player control have to be used in a Single Threaded Application???