Browse by Tags

Tagged Content List
  • Blog Post: .NET ServicedComponents and STA Apartment

    A major issue with running all COM components using STA threads is that the thread which calls CoInitializeEx must be the only thread executing method invocations on that COM instance. Now assume a scenario in which the STA thread is busy performing other activities. In those scenarios you will receive...
  • Blog Post: .NET Thread Apartment and COM Interop

    Before a thread can call into a COM object it has to define its apartment by declaring whether it will enter a single-threaded apartment (STA) or a multi-threaded apartment (MTA). STA client threads call CoInitialize(NULL) or CoInitializeEx(0, COINIT_APARTMENTTHREADED) to enter an STA apartment and MTA...
Page 1 of 1 (2 items)