Oops! It appears that you have disabled your Javascript. In order for you to see this page as it is meant to appear, we ask that you please re-enable your Javascript!

Reply To: GUI does not work properly

#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 8 months, 1 week ago by  Bitahwa Bindu.