Home > Software engineering >  How to determine the com
How to determine the com

Time:10-03

Way to turn a serial port communication with usb serial port, but I found that, in the process of communication, occasionally the mapping of virtual serial port for interference will can't find it, but because at the beginning of communication is normal open the serial port, in the event of a disturbance when the program is still in operation does not exist the com, which creates a crash, have what good method to avoid crash?

CodePudding user response:

On error goto!
Do error handling wouldn't have crashed
  • Related