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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:19:06+00:00 2026-06-15T22:19:06+00:00

I have a c# Winforms application that receives data from serial port, then process

  • 0

I have a c# Winforms application that receives data from serial port, then process it and displays on a listview.

Receiving data at 100ms works well, but when the source transmitting rate is changed to 10 milliseconds, the application hangs after a minute or 2 minutes.

Details:

The app receives data in bytes, so I need to convert to strings, store in arraylist and fill it into the listview columns, few conversions are involved in the operation:

  1. byte to strings
  2. few conversion string to integers.

I am also using normal listview code which looks like this:

ListViewItem item = new ListViewItem(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss.ffff"));
item.SubItems.Add(hex1.ToString());
item.SubItems.Add(hex2.ToString());

.....

listView1.Items.Add(item);

so i am not sure whats wrong. is it the listview cannot handle the rate that data is coming?

any suggestion why the application hangs at that speed?

  • 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-15T22:19:07+00:00Added an answer on June 15, 2026 at 10:19 pm

    I expect that the listview is redrawing itself after each item is inserted. If it takes longer to redraw than the interval between insertions, you’ll get it hanging up. Of course, this gets worse and worse as the list grows longer.

    You could perhaps fix it by accumulating batches of updates, and calling ListView.BeginUpdate() before inserting a batch, and ListView.EndUpdate() after inserting the batch.

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

Sidebar

Related Questions

[Winforms Application .NET 4.0 C#] I have a textbox that receives data from a
I currently have a WinForms application that downloads large amounts of data from a
We have a WinForms application that uses SQL server to store its data. To
I have C# winforms application that needs to start an external exe from time
I have a Winforms application that generates its own PrintDocument object for printing. It
I have a Winforms application that schedules some work using a service. The service
I have a Winforms application that dynamically instantiates external form objects for use in
I have a WinForms application that requires some configuration which I do at install
I have a WinForms application that makes use of a TaskDialog library that leverages
I just started to use SQL Server 2008. I have a winforms application that

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.