Hi Keith,
"Single threaded" aka main threaded setting is a legacy setting which
you should not use for COM+ components. It basically means that only
the thread which created the instance can execute the code.
With the "Apartment Treaded" setting under COM+ it is possible for
other threads ( from the STA pool) to execute the code, but still,
generally, the code could only be executed by one thread at a time.
This is why the available COM+ concurrency settings are limited.
Both threading settings are essentially different flavors of the same
thing ( STA), and therefore COM+ explorer shows Single Thread
Apartment at Threading Model no matter Threading Model you select in
VB.
You must always set your COM+ VB project to "Appartment Treaded",
and check "Retain in memory".
Slava
Quote:
>When desinging a ActiveX dll component, there are only
>two options for Threading Model (in Project Properties
>page), Apartment Threaded and Single Threaded.
>After compiling the component and installing it into
>COM+, I checked its Properties in Concurrency tab and it
>shows Single Thread Apartment at Threading Model no matter
>what Threading Model I selected when designing the
>component.
>Do it means that Apartement Threaded and Single Threaded
>are same for VB ActiveX dll?
>Thanks
>Keith