SerialPortInUseException Class
Exception thrown when a serial port method is already in progress and a second attempt is made to use the serial port.
Namespace: ASCOM.Utilities.ExceptionsAssembly: ASCOM.Utilities (in ASCOM.Utilities.dll) Version: 7.1.3+4851.c5da65c2b
[SerializableAttribute]
public class SerialPortInUseException : HelperException
<SerializableAttribute>
Public Class SerialPortInUseException
Inherits HelperException
[SerializableAttribute]
public ref class SerialPortInUseException : public HelperException
- Inheritance
- Object Exception HelperException SerialPortInUseException
This exception is only thrown after 5 attempts, each with a 1 second timeout, have been made to
acquire the serial port. It may indicate that you have more than one thread attempting to access the serial
port and that you have not synchronised these within your application. The serial port can only handle
one transaction at a time e.g. Serial.Receive or Serial.Transmit etc.