a question on COM Apartments

3 views
Skip to first unread message

Chimanrao

unread,
May 14, 2010, 4:18:17 AM5/14/10
to
hi

I have an activex control which specifies its threading model as STA.
This activex control can be loaded in the browser.
Let say that there are two instances of this control in the browser,
will both the instances get a separate apartment or both lie in a
single apartment but the access to the apartment is controlled by the
proxy?

Regards
Chimanrao

Igor Tandetnik

unread,
May 14, 2010, 8:05:56 AM5/14/10
to
Chimanrao wrote:
> I have an activex control which specifies its threading model as STA.
> This activex control can be loaded in the browser.
> Let say that there are two instances of this control in the browser,
> will both the instances get a separate apartment or both lie in a
> single apartment

Assuming both are on the same page, they'll be in the same apartment.

> but the access to the apartment is controlled by the
> proxy?

What do you mean, access to the apartment? You don't access apartment, you access COM objectcs. Also, access by whom?

Most of the time, there is no proxy invovled in the scenario you describe.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not necessarily a good idea. It is hard to be sure where they are going to land, and it could be dangerous sitting under them as they fly overhead. -- RFC 1925

Reply all
Reply to author
Forward
0 new messages