.write() function crashes entire program
I am writing a program to create a GUI on my screen that communicates over the serial port to an Arduino to control the color of an RGB LED. The last line in the draw() loop is writing to the serial port using port.write(), but my program never gets past that. I added the following debugging lines and the serial monitor will print "Here", but never "Made it". Also, since the program doesn't loop, the GUI never displays.
String out = nf(r,3) + nf(g,3) + nf(b,3);
println(out);
println("Here");
port.write(out);
println("Made it");
If anyone knows how to fix this, please let me know. I am running the 32-bit version of Processing (2.0.1) on Windows 8.
UPDATE: Also, I'm not getting any errors, the serial monitor shows the Serial library version, lists the available ports, prints the string out and says "here". Then it just stops.