cross thread..? How to populated a textbox with serial input?I
-
I am getting some serial inputs and storing them into a buffer when I want to place the contents onto the textbox from the buffer...a cross thread violation error comes up...I am running the textbox from the interrupt function of the serial comm. any advise? Thanks samuel
-
I am getting some serial inputs and storing them into a buffer when I want to place the contents onto the textbox from the buffer...a cross thread violation error comes up...I am running the textbox from the interrupt function of the serial comm. any advise? Thanks samuel
This should fix your problem...
public Form1() { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; }
-
This should fix your problem...
public Form1() { InitializeComponent(); CheckForIllegalCrossThreadCalls = false; }
Look at what I got for the same answer: http://www.codeproject.com/script/comments/forums.asp?msg=2170602&forumid=1649&Page=2&userid=3539989&mode=all#xx2170602xx[^]
-
Look at what I got for the same answer: http://www.codeproject.com/script/comments/forums.asp?msg=2170602&forumid=1649&Page=2&userid=3539989&mode=all#xx2170602xx[^]
Wow that helps me alot... I have been having trouble with my GUI hanging... Thanx!!!
-
Wow that helps me alot... I have been having trouble with my GUI hanging... Thanx!!!
Maybe you could edit your original reply where you suggest to disable the check? People who read it might not follow the link to the previous discussions and actually think they have found a solution. And as it often appears to work after a quick test they would be in the dark why their GUI hangs.