Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Javax.Comm strategies  RSS feed

Thomas Mcfarrow
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a swing application that uses Javax.comm to read and write to serial ports often.

Is it better to keep an output / input stream open or close them on each call.

I had a bad experience with AudioInputStream while opening and closing on each call. It seemed to have a memory leak that wasn't related to my code. I don't want a response on the AudioInputStream problem, just the javax.comm. Thanks.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!