#2977

Bitahwa Bindu
Keymaster

The data received in your serialPort1_DataReceived method is coming from another thread context than the UI thread, and that’s the reason you see this error.
To resolve this problem, instead of reading the content directly in the serialport1_DataReceived method, create a delegate like this:

  • This reply was modified 6 months, 1 week ago by  Bitahwa Bindu.