Click to See Complete Forum and Search --> : UI Freeze while transmitting via RS232


chanseng738
April 8th, 2010, 11:48 PM
Hi all,
I'm having a problem, my UI freeze while I transmit and receiving data thru RS232. The program works just that the UI freeze for a while. It return to normal after the Tx/Rx completed in RS232. I wonder why. I try many things like Update the UI thru invalidata and updatewindow method in the function that sends the data but it doesnt help at all. Pls help, tq.

VictorN
April 9th, 2010, 03:51 AM
You should move your code for RS232 communications to the secondary thread(s)

MrViggy
April 9th, 2010, 11:25 AM
Ditto. You need to create a worker thread for the transmitting/receiving of the data.

Viggy