What is "Register Dispose" error in OscP5?
in
Android Processing
•
8 months ago
Hello,
I am trying to get my android to communicate with the computer. My android receives the messages. But messages sent through it are not received by the computer.
I found out the following in the console -
- debug:
- OscP5 0.9.9 infos, comments, questions at http://www.sojamo.de/oscP5
- Register Dispose
- java.lang.NullPointerException
- ### [2013/2/15 21:50:23] PROCESS @ OscP5 stopped.
- ### [2013/2/15 21:50:23] PROCESS @ UdpClient.openSocket udp socket initialized.
- ### [2013/2/15 21:50:24] PROCESS @ UdpServer.start() new Unicast DatagramSocket created @ port 12001
- ### [2013/2/15 21:50:24] PROCESS @ UdpServer.run() UdpServer is running @ 12001
- ### [2013/2/15 21:50:24] INFO @ OscP5 is running. you (127.0.0.1) are listening @ port 12001
The code that i am running on android is (i have modified and used the broadCaster example) -
- /* osc send-receive, android sketch */
- import oscP5.*;
- import netP5.*;
- OscP5 oscP5;
- NetAddress myRemoteLocation;
- void setup() {
- oscP5 = new OscP5(this,12001);
- myRemoteLocation = new NetAddress("192.100.64.1",12000);
- //println(this);
- //exit();
- }
- float x;
- void draw() {
- background(0);
- fill(255);
- rect(x,0,100,100);
- }
- void mousePressed() {
- /* send a message to your remote location on mouse (touch) click */
- OscMessage myMessage = new OscMessage("/test");
- myMessage.add(123);
- oscP5.send(myMessage, myRemoteLocation);
- println("android sketch, sending to "+myRemoteLocation);
- }
- /* incoming osc message are forwarded to the oscEvent method. */
- void oscEvent(OscMessage theOscMessage) {
- x = random(255);
- }
The INTERNET permissions have been ticked.
What could the problem be?
1