|
Re: Invalid thread access [message #49963 is a reply to message #49722] |
Mon, 24 March 2003 15:36 |
Eclipse User |
|
|
|
Originally posted by: therier.yahoo.com
(I had pb with my post, hope this one works!)
This exception is thrown because you try to modify a GUI elment outside a
GUI thread.
To handle this problem use this:
Display display = Display.getCurrent();
if (display==null) display = Display.getDefault();
display.asyncExec( new Runnable(){
public void run(){
// Put your GUI modif. here.
}
});
Note that you could replace the asyncExec() by a syncExec()
"Frank Radermacher" <isag.srl@libero.it> a
|
|
|
Re: Invalid thread access [message #591910 is a reply to message #49722] |
Mon, 24 March 2003 15:36 |
Eclipse User |
|
|
|
Originally posted by: therier.yahoo.com
(I had pb with my post, hope this one works!)
This exception is thrown because you try to modify a GUI elment outside a
GUI thread.
To handle this problem use this:
Display display = Display.getCurrent();
if (display==null) display = Display.getDefault();
display.asyncExec( new Runnable(){
public void run(){
// Put your GUI modif. here.
}
});
Note that you could replace the asyncExec() by a syncExec()
"Frank Radermacher" <isag.srl@libero.it> a
|
|
|
Powered by
FUDForum. Page generated in 0.03534 seconds