Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Processing.net launch Client running on a thread

$
0
0

Hello,

I'm trying to improve the performance of a program using threads for the development of the heaviest tasks.

However, I have problems with this code, and I can´t find a solution.

What I can do?

import processing.net.*;


Client myClientC;

public class ClientThread extends Thread {


    public ClientThread(String str) {
        super(str);
    }
    public void run() {
      try{println("OK");
      Client myClientC = new Client(this, "192.168.1.88" , 6025);
      }catch(Error e){}
    }
}
void setup(){
        ClientThread AAA = new ClientThread("ClientThread 1");
        AAA.start();
     }

void draw()
{
}

Viewing all articles
Browse latest Browse all 2896

Trending Articles