I have a native C++ COM Server dll accompanied with type library (.tlb file) and .NET Interop assembly generated by TlbImp.exe. The server is registration free and I have a manifest to activate the context for it. I want to use the server from managed C# application. I activate the context right before creating an object of the server class but I'm not sure when should I deactivate it? I found the article (http://www.mazecomputer.com/sxs/help/sxsapi2.htm) which says
Note that unlike in the C++ example above, we cannot deactivate the activation context yet. COM Interop will need the context to locate the type library necessary to make the COM object call.
Should I keep the context activated for all or just the first COM object call? Is there detailed description on that matter on MSDN site?