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

  • SEARCH
  • Home
  • 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 8518997
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:07:43+00:00 2026-06-11T06:07:43+00:00

From here Does closing the application stops all active BackgroundWorkers? it seems not. But

  • 0

From here Does closing the application stops all active BackgroundWorkers? it seems not.

But from here How to stop BackgroundWorker on Form's Closing event? it seems yes.

So which is it?

(EDIT: I realize that the BackgroundWorkers might exit with an exception. But what’s the problem with that? Isn’t the point here to not leave running threads which take up resources?)

  • 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-06-11T06:07:45+00:00Added an answer on June 11, 2026 at 6:07 am

    Closing a Form does not stop all background workers started by that form.

    When the entire application ends it will stop all background threads.

    Closing the main form (unless you have modified the Main method to do something else) will end the entire application.

    Each question you referenced is correct for what it says. If you close the main form, then the entire application will end and the background worker will be closed on its own. If the form that is closing isn’t the main form, but some other form, and you want the background worker that it starts to be stopped, then you will need to do so yourself.

    It’s also worth noting that the second link that you have provided asks for something a bit more complex. It’s clear in that post that closing the form (if it’s the main form) will stop execution of the background thread. What the OP is trying to do there is to tell the background thread, “hey, it’s time to finish up, we’re done here” and then have the form wait until that background thread can finish cleaning things up nicely, rather than just exiting and forcibly aborting the thread while it’s in the middle of doing something.

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

Sidebar

Related Questions

from here Im having trouble understanding they say that ado.net does not include a
What does the PCGPRLEN-1..28 means here?? Where does this 4 bit comes from? alt
Does doing good enough software take anything from you being a programmer? Here are
Does the latest version of MacRuby support static compilation? Here's some terminal output from
from here 48 struct snd_card *snd_cards[SNDRV_CARDS]; 49 EXPORT_SYMBOL(snd_cards); I am not getting whats the
I am writing a wxPython application that remains open after closing all of its
What does the statement mean? From here ref and out parameters in C# and
I've got a Windows Forms Application that does some data fetching from various places.
I know people complain usually about scripts not working, but here is a case
I'm trying to dynamically generate a pdf form from an asp.net C# application. The

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.