THNX for trying to clarify the results.
Few points.

I'm using .NET and there for I don't call my self any function
on the COM object the RCW calls and it's behaviour I'm tring to understand.

When i wrote creating an STA object from an MTA thread I meant - I have
a .net thread that is an MTA thread and it creates an object that is marked
in the registry as apartment.

The question is - on the MSDN it is written that calling from an STA thread
to an objet in STA apartment is very fast. Does they mean - from the thread
that created that COM object only? otherwise there is a very heavy penalty?
just because the marshaler?

If so I would imagine that to call from an MTA thread to a STA object would
be even slower - why is it much faster?

We just tring to figure out the best way to use STA objects from managed
application.

thnx.

===================================
This list is hosted by DevelopMentor�  http://www.develop.com
Some .NET courses you may be interested in:

NEW! Guerrilla ASP.NET, 17 May 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to