I'm working on an application that sends MIDI data out to a light array. I'd like the application to have several different modes, i.e. on, off, oscillating, random, etc. I'm using the controlP5 library for my GUI, so I need to be running the MIDI processing in a different thread so that the main window can continue drawing, etc. I followed the Processing Threading wiki example to place the MIDI stuff in a seperate thead, which I can start and stop; however, when I try to start it again I fail with the message:
"
SEVERE: An error occured while forwarding a Controller value
to a method in your program. Please check your code for any
possible errors that might occur in this method .
e.g. check for casting errors, possible nullpointers, array overflows ... .