Hello again,
I'm currently stuck...
I'm receiving data from a serial port. So I process the data, create a custom object based on the data, and then place the object into an inherited ibinding list. My object also implements INotifyPropertyChanged interface so it can easily bind to a datagridview control. Everything works great except the debugger throws an error stating that the datagridview control was created on another thread. I do know that the port.DataReceived event runs on another thread but shouldn't it throw the error on my list, wouldn't the list also be created on a different thread then the serial port.
I've seen some examples of how to make safe cross-thread calls using delegates and the control.invoke method. But is it even possible to make safe thread call to a datagridview control while it is bound to a List?
Thanks for your help.
I'm currently stuck...
I'm receiving data from a serial port. So I process the data, create a custom object based on the data, and then place the object into an inherited ibinding list. My object also implements INotifyPropertyChanged interface so it can easily bind to a datagridview control. Everything works great except the debugger throws an error stating that the datagridview control was created on another thread. I do know that the port.DataReceived event runs on another thread but shouldn't it throw the error on my list, wouldn't the list also be created on a different thread then the serial port.
I've seen some examples of how to make safe cross-thread calls using delegates and the control.invoke method. But is it even possible to make safe thread call to a datagridview control while it is bound to a List?
Thanks for your help.