Closed GoogleCodeExporter closed 9 years ago
Curiously, in a for loop going through all available com ports in search of an
arduino, using arduino.close() instead of arduino.dispose I get random crashes
between 1 and 10 seconds once the port with the arduino that is found. I'm
sure this is becuase I've got multiple instances of the ANE backend code
circulating around as I have not closed previous incantations properly.
Anyway, thought to log this in case it helps a fellow googler.
There may be some link between this and issue 8? Peeeerhaps anyway!
Original comment by andytwo...@gmail.com
on 24 Sep 2012 at 3:04
On Windows, there is really no good way to determine what is a valid Arduino...
You can try to open the port, and see if portOpen() returns true. If it does
not, that means that it couldn't be... You shouldn't write to the port unless
it's been checked by portOpen() or it will crash....
I've taken a look at the code within the Arduino Studio to see what they are
doing to sense Arduinos -- but they rely too heavily on some Java calls that I
don't think I can get away with and still make it cross platform.
As far as comment 1, there is a recycle period where the memory space is still
in use. I don't know how to do a good scan of it....
Original comment by Nicholas...@gmail.com
on 12 Nov 2012 at 11:22
Original comment by Nicholas...@gmail.com
on 23 Apr 2013 at 3:25
Original issue reported on code.google.com by
andytwo...@gmail.com
on 24 Sep 2012 at 10:30