.NET2 SerialPort - 100% CPU problem
I'm having a similar problem with VB express 2005 beta 2.
I have this code in the form_load:
Dim com1As IO.Ports.SerialPort
com1 =My.Computer.Ports.OpenSerialPort("COM1")' init com port
com1.Parity = IO.Ports.Parity.None
com1.StopBits = IO.Ports.StopBits.One
com1.BaudRate = 9600
That runs fine, but as soon as it gets to this code, it hangs. Occasionally it displays the correct data, but it stays hung.
While (5 = 5)com1.Read(stuff, 0, 1)
TextBox1.Text = TextBox1.Text & stuff(0)
' shoove it in textbox1System.Threading.Thread.Sleep(1000) ' delay for a second
EndWhileI have tried using read, readline, readchar and even readbyte, but exactly the same happens.

