Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27201

Raising Event from Async Data Rec.

$
0
0
Hi Guys,
I'm doing a typical producer/consumer method to get packets from my serial port and then process the data out of them.

Currently I'm putting that data into yet another queue to be grabbed by a a polled (timer) event in the GUI.

This works well, it checks to see how much data is in the queue and takes it out and displays it.



BUT. Now, I have a communication unit that is really infrequent and I don't want to always be polling it. Is there a way to fire an event from the thread the data received event fires from? (and possibly back to the GUI thread?).

Basically I want to change this from poll (timer) based to event based.

Thanks guys,
Nick

Viewing all articles
Browse latest Browse all 27201

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>