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
Post a Comment