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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T02:15:13+00:00 2026-06-06T02:15:13+00:00

I am writing a program (.net 4) that interacts with an external COM object.

  • 0

I am writing a program (.net 4) that interacts with an external COM object. In the interest of having a “live” program, I am changing the program from polling the COM object and then doing calculations to receiving events from the COM object.

My issue is the events are too fast. As far as I can tell (in debug mode) some events are missed and so on.

The specific questions are:

  1. How do I (or C#) make sure I catch and handle all the events?
  2. How should the main be built to wait for an event (if there is a long time in between events) and not end?

I have tried a main with an infinite loop that sleeps for a millisecond and then spins off a thread, but that is just a big mess.

Thanks for your time

  • 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-06T02:15:16+00:00Added an answer on June 6, 2026 at 2:15 am

    How do I (or C#) make sure I catch and handle all the events?

    BackgroundWorkers is great for problems like this: –

    How should the main be built to wait for an event (if there is a long
    time in between events) and not end?

    You should continously poll for events by using a Timer. You should simply handle the data as its received.

    Without more information this question will be difficult to answer in more detail….

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

Sidebar

Related Questions

I'm writing a ASP.NET program that inserts PNG images into a PDF. Ideally, I'd
I'm writing a plug-in for another program in C#.NET, and am having performance issues
When writing programs (C#.NET) I'll commonly use external libraries I've downloaded from various websites
I'm writing a .NET program in C# that makes GET requests and downloads pages
I'm writing a program that needs to receive input from a NMEA GPS device.
I'm writing a program (in Java) that needs to extract links from webpages. I'm
I'm writing a program in VB.NET that needs to get the path to the
I have an ASP.NET program that is writing date to an SQLExpress Database date
I'm writing a simple little program in VB.NET that has to play two sounds
I'm writing a .NET program that does a lot of string validation of text

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.