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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:04:40+00:00 2026-05-13T10:04:40+00:00

My C# application has a timer that triggers an event every 100 milliseconds. Inside

  • 0

My C# application has a timer that triggers an event every 100 milliseconds. Inside this event there is a receive handler for bus traffic that loops continuously until the receive buffer is empty, or another 100 milliseconds has elapsed. This works fine until I try to use one of the other controls in my application at run time. Then the application freezes. Does anybody have any ideas how I may partition my application (or otherwise modify it), so that when I try to use a control, the background event (tied to the timer) can continue running and not stall the application? I am using Microsoft Visual C# 2008 Express Edition. 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-13T10:04:40+00:00Added an answer on May 13, 2026 at 10:04 am

    You have to use a BackgroundWorker (or an equivalent construct) for the receive handler. That way it will run in a different thread and the form will be able to respond timely, and you won’t need a timer in the loop.

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

Sidebar

Related Questions

Which is the best timer approach for a C# console batch application that has
This often comes up: your application has gotten extensive enough that it's time to
I have a System.Timers.Timer that updates my win form application components in every 5
Application has an auxiliary thread. This thread is not meant to run all the
My application has a plug-in model that allows third-party developers to write assemblies that
I believe the application has some parts that target .NET, and some that don't.
I have a web app that has to do something every, let's say first
My application has a need to let the user choose a date from a
Our application has a file format similar to the OpenDocument file format (see http://en.wikipedia.org/wiki/OpenDocument
My application has no forms. It runs by calling Application.Run();

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.