Hi friend could be possible to validate if the comport was connected or not.... if not connect the app crash...

TComPort.connected:=true;

if possible to mage something like try or some like that