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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:22:29+00:00 2026-05-11T07:22:29+00:00

I recently tried to use backgroundworker instead of classic threads and I’m realizing that

  • 0

I recently tried to use backgroundworker instead of ‘classic’ threads and I’m realizing that it’s causing, at least for me, more problems than solutions. I have a backgroundworker running a synchronous read (in this case from serialPort) and getting blocked around 30 seconds in 1 code line, then cancellationpending isn’t the solution. I’m seeing that if the application gets closed at this point (either with the cross button and Application.Exit()) the process keeps zombie forever.

I need a way to force abort or to kill the backgroundworker thread.

  • 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. 2026-05-11T07:22:30+00:00Added an answer on May 11, 2026 at 7:22 am

    I’m not very sure on what you’re trying to accomplish, but maybe the SerialPort.DataReceived event is a better solution?

    If you’re already proficient with the usage of threads, I don’t see the point in using BackgroundWorker. It’s designed for people who don’t understand threads in the first place.

    Besides, I don’t like the idea of aborting a thread. It feels dangerous, and multithreaded applications don’t need any more risk taking.

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

Sidebar

Related Questions

I recently tried to figure out how to use freeglut with NetBeans 7. I
I'm recently tried to make a custom tabcontrol that able to move the tab
I recently tried to use Qt Creator 1.3.2, Qt 4.6.2, and GCC 4.4.0 (32-bit
i have recently compiled new clang(3.1 now), and tried to use it for parsing
Recently I tried to use /Wall Visual C++ option to enable all warnings and
I recently tried to use jQuery's effect('scale') function with the hover() function in jQuery.
I have recently tried to use the php mail function to send out confirmation
I tried recently to use NAnt (beta 0.86.2962.0) to run some unit tests compiled
I've recently tried to write something in F# making use of Microsoft Solver Foundation
I have a DLL that I want to profile.. I tried to use Very

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.