multiSketch problem with giCentre Utils
Hi all,
I'm trying to write a program that runs two sketches at once. The sketches need to be able to communicate, as one updates data in the other. I've been able to get the programs to open in the two sketch windows, however, the issue I am having is that only one of the sketches, the main one, draws to its window. I've checked, the subprogram is running correctly in terms of collecting data and attempting to write it, just none of it makes it to its window. Is there an immediate reason why this could be happening? I believe I've followed the basic example program in the documentation faithfully (http://gicentre.org/utils/multiWindow/ ), but I haven't been able to get the multiple sketches working.
I'm also having another, possibly related problem. When I make a call to background(0) in the subprogram's draw(), I get a nullpointerexception. I'm having trouble wrapping my head around why this would be occurring. How can I make references to the subprogram's window without turning up these exceptions? I also tried doing the same calls via the subprogram object in the main program and turned up the same exception. Is there a different way I should be approaching this?
Thanks for any suggestions,
Bobby