Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6006641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:34:08+00:00 2026-05-23T01:34:08+00:00

Say a COM object is created on an STA thread. So all calls to

  • 0

Say a COM object is created on an STA thread. So all calls to this object are serialized in this thread. So if a method of the object’s is blocking, all threads that use this object are blocked.

So having a blocking method in an STA COM object is a design defect to be avoided?

If the COM object is free threading, it is OK to have a blocking method?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:34:09+00:00Added an answer on May 23, 2026 at 1:34 am

    Yes, objects on single-threaded apartments are synchronized via messages and all calls to them are serialized in such way that no more than one method can be called on any such object at any moment of time (also no method can be called more than once at any moment of time). This is by design and is done to achieve a certain degree of thread-safety. Having a long running method by itself is not a big problem unless you introduce a deadlock. Yes, the callers will wait until their calls are run in turn.

    Objects in the multi-threaded apartment are not synchronized via messages – all calls to such objects are done directly without synchronization so more than one or more methods can be called at any object at any moment of time in parallel and it’s up to the object to ensure thread-safety. Methods of course can block inside, but care should be taken to not introduce a deadlock.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a webpage (say www.example.com/a.asp) .. I am having an iframe in this
Lets say that you have websites www.xyz.com and www.abc.com. Lets say that a user
Let's say I'm developing an application that installs COM component and installer registers them.
I have a script CustomAction (Yes, I know all about the opinions that say
How would I run both of them under one main website, say www.example.com, which
If I was to send a URL to a DNS server, lets say: dev.example.com/?username=daniel,
Say I have a site on http://example.com . I would really like allowing bots
Say I have a web service http://www.example.com/webservice.pl?q=google which returns text google.com. I need to
Say I want to get the HTML of http://www.google.com as a String using some
Lets say I am currently at: http://example.com/folder/page.html Is it possible to create a relative

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.