Home > Back-end >  Comport do program without clearance before pull out the USB - UART serial port after closing the er
Comport do program without clearance before pull out the USB - UART serial port after closing the er

Time:11-17

I tried D7 and XE8 installation COMPORT controls, USB to TTL module connected to a computer running normally, if in no close a serial port, pull out the USB - TLL module, close the program will prompt error


Procedure TForm1. FormCloseQuery (Sender: TObject; Var CanClose: Boolean);
The begin
Try
ComPort1. Close;
Except,

end;
end;

Excuse me, in addition to the change control, is there a way to eliminate this error message?

CodePudding user response:

Should be connected to Comport abnormal after removing equipment will have this problem, one of my project is also like this
Had to restart the program to return to normal

CodePudding user response:

Seems to have only change control, tried SPCOMM did not appear this kind of phenomenon,
  • Related