Interop object throws exception If two session of applications are open in C++

81 Views Asked by At

I am using System::Runtime::InteropServices::Marshal::GetActiveObject(MyApplication); to initialize my Interop object. When I open two sessions of application and in second session, call the function of interop object, it throws following exception HRESULT 0x80010105:

enter image description here

Is there a way I can use interop object in two sessions separately ?

0

There are 0 best solutions below