intvsteve / VINTage

Various Intellivision-related projects, including the LTO Flash! User Interface application.
GNU General Public License v2.0
3 stars 1 forks source link

On Mac, some Intellicart features enabled when serial port not in system #72

Closed intvsteve closed 6 years ago

intvsteve commented 7 years ago

Previously had configured LTO Flash! UI to communicate with Intellicart via a USB<->Serial stick. Later, removed the device. The UI remembers the configuration, but:

System.IO.IOException: No such file or directory at System.IO.Ports.SerialPortStream.ThrowIOException () [0x00012] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/System/System.IO.Ports/SerialPortStream.cs:317 at System.IO.Ports.SerialPortStream..ctor (System.String portName, Int32 baudRate, Int32 dataBits, Parity parity, StopBits stopBits, Boolean dtrEnable, Boolean rtsEnable, Handshake handshake, Int32 readTimeout, Int32 writeTimeout, Int32 readBufferSize, Int32 writeBufferSize) [0x0001e] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/System/System.IO.Ports/SerialPortStream.cs:35 at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPortStream:.ctor (string,int,int,System.IO.Ports.Parity,System.IO.Ports.StopBits,bool,bool,System.IO.Ports.Handshake,int,int,int,int) at System.IO.Ports.SerialPort.Open () [0x00078] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/mcs/class/System/System.IO.Ports/SerialPort.cs:579 at (wrapper remoting-invoke-with-check) System.IO.Ports.SerialPort:Open () at INTV.Shared.Model.Device.SerialPortConnection.OpenPort () [0x00008] in /Users/steveno/lui_src/lui_src/INTV.Shared/Model/Device/SerialPortConnection.Mac.cs:79 at INTV.Shared.Model.Device.SerialPortConnection.Open () [0x0000d] in /Users/steveno/lui_src/lui_src/INTV.Shared/Model/Device/SerialPortConnection.cs:307 at INTV.Intellicart.Model.DeviceHelpers.DownloadRom (INTV.Shared.Utility.AsyncTaskData taskData) [0x00121] in /Users/steveno/lui_src/lui_src/INTV.Intellicart/Model/DeviceHelpers.cs:85 at INTV.Shared.Utility.AsyncTaskWithProgress.AsyncTaskDoWork (System.Object sender, System.ComponentModel.DoWorkEventArgs e) [0x00019] in /Users/steveno/lui_src/lui_src/INTV.Shared/Utility/AsyncTaskWithProgress.cs:258 at System.ComponentModel.BackgroundWorker.OnDoWork (System.ComponentModel.DoWorkEventArgs e) [0x0001c] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/external/referencesource/System/compmod/system/componentmodel/BackgroundWorker.cs:105 at System.ComponentModel.BackgroundWorker.WorkerThreadStart (System.Object argument) [0x0000d] in /private/tmp/source-mono-mac-4.0.0-branch/bockbuild-mono-4.0.0-branch/profiles/mono-mac-xamarin/build-root/mono-4.0.0/external/referencesource/System/compmod/system/componentmodel/BackgroundWorker.cs:245

These items should be disabled if the serial port is not available in the system.

Did not check on other platforms.

intvsteve commented 6 years ago

Happens in Windows, too.