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!!