Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
8.6k views
in General by
Hi,
I have simple program written using SWT. SWT is using quite different threads management what prevents me from just starting a separate thread for FTPClient.get()/FTPClient.put() methods while I'm during download/upload. The reason is I'm trying to access UI from the FTPProgressMonitor.bytesTransferred() method - updating the SWT.ProgressBar object.

As I've found on the net I'm using:
FTPClient client = new FTPClient();
// [...] a few lines of initialization of client object....

display.async(new Runnable()
{
   public void run()
   {
       client.get(); // i'm calling it on the appriopriate object
   }
}


Unfortunately the main window freezes even starting separate thread using display.async() :-(
What I'm doing wrong? Can somebody explain me that?
Thanks for your replies...

--
Piotr Gorny

1 Answer

0 votes
by (161k points)
are you calling start() on the thread?

Categories

...