Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java.comm API: WaitCommEvent: Error 5  RSS feed

 
Chiranjeevi Kanthraj
Ranch Hand
Posts: 290
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While testing our application, removed the usb cable.
Immediately I get this error message: "WaitCommEvent: Error 5"
How to fix this - i'd like to be able to handle this condition, so that the threads in my app are safely terminated when this happens.
 
Nicholas Jordan
Ranch Hand
Posts: 1282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That, in general, is exactly what exception handling is for.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!