Unity Editor crashing on SerialPort.Open()?

Hi folks,

can anybody confirm that the Unity Editor crashes on System.IO.Ports.SerialPort.Open()? Or is it only me?

Cheers, Hendrik

It might not find the port you specified, or maybe its just a glitch

Not true, but serial port code does crash out the editor.
Tested using Unity 3.5.3 on Windows 7 (x86)

SerialPort.Open() ok
SerialPort.ReadLine() always times out
SerialPort.ReadChar() works
SerialPort.BytesToRead() crashes the editor
I have managed to hang the editor quite a lot.

Same here in Unity 4.1.2 but ReadLine works.

I have managed to get it working with a new Thread and a endless Loop


string x;
   x = _port.ReadLine();