starting/stopping/resuming multi-purpose thread
in
Programming Questions
•
2 years ago
Hello,
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 ... .
method: programs
exception: java.lang.reflect.InvocationTargetException
"
My code is located at
https://gist.github.com/fde8f4db7a3dcc558820
Any help would be much appreciated!
Drew
1