java - Debug takes four minutes to run -


i developed swing application communicate through serial port. using rxtx library serial port communication, hangs 5 minutes when debug application @ point.

public void connect(string portname) throws exception { commportidentifier portidentifier = commportidentifier.getportidentifier(portname); if (portidentifier.iscurrentlyowned()) {  system.out.println("port in use!"); } else {  serialport serialport = (serialport) portidentifier.open("rs232example", 2000);    serialport.setserialportparams(57600, serialport.databits_8, serialport.stopbits_1,          serialport.parity_none);    new commportsender(serialport.getoutputstream());    new commportreceiver(serialport.getinputstream());  } } 


Comments

Popular posts from this blog

Javascript line number mapping -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -