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 4325368
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T09:15:26+00:00 2026-05-21T09:15:26+00:00

Is it possible to use multi-threading in a .NET COM callable wrapper DLL assembly?

  • 0

Is it possible to use multi-threading in a .NET COM callable wrapper DLL assembly?

For example, I have a .NET assembly dll that exposes a .NET FTP library to COM. Upload functions are currently programmed as “best effort” functions. I’m not using events or return values to show whether an upload or download completed successfully, which is something I may consider implementing later if necessary. Could the .NET assembly (in my really limited understanding) simply farm out these upload and download processes to another thread? Assuming this is possible, what would be the result of this if the hosting application was closed before the uploads or downloads were all completed?

  • 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-21T09:15:27+00:00Added an answer on May 21, 2026 at 9:15 am

    Yes, MSDN article Managed and Unmanaged Threading explains the details. In particular:

    For interoperability, the common language runtime creates and initializes an apartment when calling a COM object. A managed thread can create and enter a single-threaded apartment (STA) that contains only one thread, or a multi-threaded apartment (MTA) that contains one or more threads. When a COM apartment and a thread-generated apartment are compatible, COM allows the calling thread to make calls directly to the COM object. If the apartments are incompatible, COM creates a compatible apartment and marshals all calls through a proxy in the new apartment.


    what would be the result of this if the hosting application was closed before the uploads or downloads were all completed?

    Good question. How are you terminating the application? If it is simply a GUI application that you are closing, I think the underlying process would continue to execute as long as those threads are active. I recommend you create a test project to confirm your application’s behavior.

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

Sidebar

Related Questions

if I draw a graph that symbolizes all possible calls to blocking functions (java
I am very sorry that I am not able to provide more details of
I'm writing a serial port software for Windows. To improve performance I'm trying to
I am considering the architecture for an enterprise logging service. Its job would be
I am working on my first mutlithreaded program and got stuck about a couple
I am currently addressing a situation where our web application receives at least a
Summarization: For a Delphi function/procedure, if an instance of a class is passed through
I'm writing portable code for multicore machines and I want kernel level threads so
I'm writing a function where I need a significant amount of heap memory. Is

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.