This is the problem with this psedo-multiplatform solutions.
The delay on my machine was about 30 seconds at startup, then 20-30 seconds everytime I open the TOOLS menu to choose a port.
Now, with the fixed library, its barely noticeable (0.1 sec or less).
I was using the windows console to upload the sketches because this delay (I often use Bluetooth so disabling it every time I use arduino was a worse solution than using the console), even I am thinking on code a C# new arduino IDE, but until this moment I haven't found a free richtextbox component with visual studio-kinda capabilities, collapsible sourcecode, intellisense, etc.
I'm very happy with the results anyway, even when the creator of that library was aware of this error. (now a lot of projects using rxtx will be updated with the version 2.2 of this library thanks to this small research)
Knowing the port would help (this way you did not need to scan those bt-related laggy ones), but the way arduino IDE is, its necessary to scan all ports to show the TOOLS/SERIAL PORT submenu
I tried your fixed library this morning and it worked perfectly. Later during the day, I was programming a Sanguino with my tablet & the new library and it seemed to still have some delays. The delays were not as long as before, but also not as short as when I tested it in the morning. Just now I tested the new library again and, once again it was working quite well.
I have that same problem with the arduino-0017 IDE on Windows. Incredible delays every time I open a serial monitor, upload something, or when I startup the application.
Has this fixed library been included in the 0017 IDE ? Will it work with 0017?
Devs: please include this update in Arduino 0018. The enhanced rxtx solves one of the most annoying problems I've run into in the Arduino IDE. If you have any sleeping Bluetooth SPP devices, the default Arduino IDE will take a long time to load, and then a long time to open the Tools menu every time.
In addition, your sleeping Bluetooth SPP connections are trashed. The old rxtx somehow sits on them and prevents them from being used by other applications. Just by opening the Arduino IDE once, you now have to reset multiple Bluetooth devices, or unpair/repair them.
The new rxtx dll above fixes that issue completely.
Yes, yes, yes, please add this to 0018! The difference is dramatic! My startup goes from a little below 1 minute to only several seconds. Opening the tools menu even took me two minutes (no joke) and now it shows immediately.
(Thanks to the OP) [smiley=thumbsup.gif] [smiley=thumbsup.gif] [smiley=thumbsup.gif]
I have also problems with my arduino17 on a vista pc. I would try this fix, but cannot open the rar file.
Can anybody give me a hint, how to open this file,
Thank's
Third party programs that can only read (unpack) RAR files include: WinZip (Windows), 7-Zip (multiplatform), IZArc (Windows), PeaZip (Windows, Linux), Zipeg (Windows, Mac OS X), ALZip (Windows), along with the free version of unrar (which is available for Linux and FreeBSD). Mac OS X readers include Stuffit Expander, The Unarchiver and Zipeg. Stuffit Expander is also available for Mac OS Classic with RAR support for this platform.
If you go to the second link above, all those third party programs have their own links. I'm too lazy on a Saturday to copy the links into this reply.
Another big thanks for fixing this problem. I have an older laptop running XP, and the arduino application was completely unusable due to the delays in the 0018 distribution DLL.
Your modified DLL fixed the entire problem, instantly.
I will try to look for it. But you can build your own patched version. First look the point 7 of this document, ignore the text, just copy the "serial_test" function code.