RanchuPanchu
Programmer
Hello,
I have made a simple program in c# which consists of a serialPort and a GUI. the serialPort interface with the GUI is only through BeginInvoke method.
The problem: I have noticed that the applications works very well as long as I do not move the main window too fast , which means that somehow the main window task is handled before the serial port iin such cases. I have changed the main window task priority to be lowest ( in the Initializer of the main window:
Thread.CurrentThread.Priority = Thread.Priority.Lowest;
But the problem persist.
I assume That maybe if I change the priority of the serialPort IO component thread to be highest, it might solve the problem, but I do not know how to do it.
I would thank you for your help,
Regards,
David
I have made a simple program in c# which consists of a serialPort and a GUI. the serialPort interface with the GUI is only through BeginInvoke method.
The problem: I have noticed that the applications works very well as long as I do not move the main window too fast , which means that somehow the main window task is handled before the serial port iin such cases. I have changed the main window task priority to be lowest ( in the Initializer of the main window:
Thread.CurrentThread.Priority = Thread.Priority.Lowest;
But the problem persist.
I assume That maybe if I change the priority of the serialPort IO component thread to be highest, it might solve the problem, but I do not know how to do it.
I would thank you for your help,
Regards,
David