Browse by Tags

Tagged Content List
  • Blog Post: AzMan Data Store through COM Interop

    If you have an ASP.NET application, you can use the AuthorizationStoreRoleProvider which adheres to the Role Provider model expected by ASP.NET and retrieves role information from Microsoft Authorization Manager (AzMan). AzMan itself is a COM based application and all communications with the store...
  • Blog Post: ThreadAbortException and Unmanaged Code

    As you are probably aware Thread.Abort() raises a ThreadAbortException in the thread on which it is invoked, to begin the process of terminating the thread. Please note that if Abort is called on a managed thread while it is executing unmanaged code, a ThreadAbortException is not thrown until the...
  • 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 (4 items)