View previous topic :: View next topic |
Author |
Message |
thedracle
Joined: 25 Dec 2005 Posts: 11
|
Posted: Sun Dec 25, 2005 5:29 pm Post subject: syncExec, and threading. |
|
|
I'm not sure if this is a bug, but I'm attempting to update the UI from a thread reading input from a socket in the background. It calls a local delegate, that then attempts to update the field with:
class TextAppend : Runnable
{
public void run()
{
printf("Test\n");
text.append(textBuf);
}
}
display.syncExec(new TextAppend());
Unfortunately, it doesn't work. The asyncExec kills my thread, and here is never printed. I haven't been able to get asyncExec to work either. Is there some special way to use this functionality in DWT?
-Jason Thomas. |
|
Back to top |
|
|
Shawn Liu
Joined: 09 Mar 2005 Posts: 104 Location: Shanghai, China
|
|
Back to top |
|
|
thedracle
Joined: 25 Dec 2005 Posts: 11
|
Posted: Mon Dec 26, 2005 2:43 pm Post subject: Thanks |
|
|
Alright, I updated dmd, and got the newest development version of DWT, and everything works. Sorry
-Jason Thomas. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|