Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Long Running Process

You can only access the Display from the main thread.  If you need to do GUI operations in your thread you will have to use the Display.asyncExec mechanism to postpone these operations until the main GUI thread runs again.

___________________________________________

 

Chris Recoskie

Software Designer

IDE Frameworks Group

Texas Instruments, Toronto

 

 

-----Original Message-----
From: platform-swt-dev-admin@xxxxxxxxxxx [mailto:platform-swt-dev-admin@xxxxxxxxxxx] On Behalf Of Bahram Sheibani
Sent: Wednesday, January 12, 2005 11:26 AM
To: platform-swt-dev@xxxxxxxxxxx
Subject: [platform-swt-dev] Long Running Process

 


Hi,
I have a long running process starting not from the GUI but the result of the process must be reflect in the
 Text in GUI interface.If i start thread with using reqular thraed execution(new Thread(..)) i get the INVALID_THREAD_ACCESS and if i  pass the display object to this thread(That is broken my seperation of concern pattern) it doesn't work either and my GUI hang .I apperciate any suggestion.
Best Regards,


Back to the top