locked
C++ Unit Test in MTA mode

All replies

  • For WinRT or native C++?

    NEU_ShieldEdge

    Monday, April 23, 2012 8:18 AM
  • For WinRT, C++/CX component.

    I follow the documentation and use the notation>

    [MTAThread]

    Also y try with:

    using namespace Windows::Foundation;
    using namespace Platform;
    
    [Threading(ThreadingModel::MTA)]
    public ref class MyTestClass
    {
    };

    But all the times, the Unit Test run in STA mode.

    Regards

    Marcelo


    Marcelo

    Thursday, April 26, 2012 1:15 PM