|
-
Creating in-proc COM Objects in the right apartment
If a client wants to create an in-proc server COM object marked as FreeThreaded in the registry, does the client need to create this object on an MTA thread? What happens if it creates the object in an STA thread - is the object still created in the MTA and the interface pointer marshalled, or is the object created in the calling thread ie. STA?
I have read 2 different contradicting things about this scenario. One scenario says that the calling thread is in charge of the apartment it wants to create the in-proc COM object in - the object is created in the calling thread's apartment. However, another source says that the in-proc object is always created in the apartment indicated in the registry and the interface pointer marshalled between interfaces.
Can anyone clarify this for me?
Similar Threads
-
By segedunum in forum .NET
Replies: 0
Last Post: 08-26-2005, 11:35 AM
-
By Andrew Merisanu in forum Database
Replies: 3
Last Post: 03-05-2001, 03:29 PM
-
By ranga raghunathan in forum Enterprise
Replies: 1
Last Post: 07-10-2000, 12:36 AM
-
By ranga raghunathan in forum Enterprise
Replies: 4
Last Post: 06-07-2000, 07:11 AM
-
By zoes in forum VB Classic
Replies: 1
Last Post: 05-20-2000, 01:16 AM
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks