asynchronous and synchronous call between apartments

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hello everyone,


Once I thought all calls across COM apartments (not inside apartment) are
all synchronous call, now after study re-entrancy problem, I think I am
wrong, at least STA to MTA call is asynchronous.

(Link to re-entrancy problem,
http://www.codeproject.com/KB/COM/sta_issues.aspx)

After some study, I can not find a conclusion whether the 4 types of calls
are synchronous or asynchronous. Here is my study result, please feel free to
correct me if I am wrong?

1. STA --> STA, I think asynchronous;
2. STA --> MTA, I think asynchronous;
3. MTA --> STA, I think synchronous;
4. MTA --> MTA, I think synchronous.


thanks in advance,
George
.



Relevant Pages

  • Re: Dual processors?
    ... STA are "Single Threaded Apartments" and MTA are ... > I wasn't planning on using com. I'm just calling dll functions. ...
    (microsoft.public.vb.general.discussion)
  • Re: Dual processors?
    ... I am calling c functions from VB. ... STA are "Single Threaded Apartments" and MTA are ...
    (microsoft.public.vb.general.discussion)
  • Re: Apartments and threading model
    ... Microsoft MVP, MCSD ... > by STA? ... >> not associated with any thread in the MTA, ... It's always COM objects who live in apartments. ...
    (microsoft.public.vc.atl)
  • Re: Syncronisationsprobleme mit SingleInstance-ATL Server ?
    ... >Die Antwort auf diese Frage gibt dir das Threading-Modell des Apartments, ... Wird hingegen MTA benutzt, so können ...
    (microsoft.public.de.vc)