JAB wrote: > > I override finalize to close BT connection ;) > see my code in: > http://www.juanantonio.info/p_research/robotics/p_lejos/lejos.htm
While I cringe a little at the use of finalize() ensuring NXTCommand.close() is called before your program exits is important. If close() is not called then the connection to the NXT will remain open. This makes it impossible to establish a connection again until the open connection times out or you cycle the NXT. Derek ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Lejos-discussion mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/lejos-discussion
