0

In my work i have an old fashion Vb app.. It's take single sale line(by text change event..) from the input and send it through RS232 output native. In purpose to get rid from any led display i took a 3rd party software that made a pair between the physical port and virtual new port then i captured the data with handler using C# and display it on modern UI after string surgery.

The problem begins in a stream of data (let's say like a quick cashier..) The screen get freezing because in the time between write the captured data to the array .. it's take the data and processing it to display it on the UI.

I had an idea to use a List to capture all data in the mean time in one thread. and in another thread to read the last object in the list and processing it to display it correctly in a view list .. How can i do it right and finally could it work to me and improve the performances?? Thanks!!

  • 2
    I don't know what you are doing, but if you are having performance problems you have some enormously inefficient code at most only tangentially related to your RS232 display. 115200 bytes/sec or less is virtually a rounding error's worth with regards to the speeds modern computers are capable of. – whatsisname Nov 14 '19 at 20:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.