Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Invalid thread access
Invalid thread access [message #462959] Sun, 23 October 2005 00:11 Go to next message
Eclipse UserFriend
Originally posted by:


I have a problem, I get the following exception.

org.eclipse.swt.SWTException: Invalid thread access

This happens when I try updating a table I created. Now the table gets created in say, "Class A". Now an Action Class fetches new data for the table. This happens in say "Class B extends Action" which actually is an Action class which only invokes the business method that fetches the xml data. This business method is in "Class C". Now "class C" signals a change in data to "class A", as "Class A" is listening to "Class C" for changes. So quite apparently the thread that signals the change to "Class A" is different than the thread the swt table gets created in. Which swt is restricting us to do, i.e. update widgets in seperate threads then the ones they get created in.

How do I update its input. Does someone understand my problem.

Re: Invalid thread access [message #462961 is a reply to message #462959] Sun, 23 October 2005 00:30 Go to previous message
Eclipse UserFriend
Originally posted by:

Found the soln. , just had to setInput in the async or syncExec method of the default display.

Previous Topic:How to dermine if Shift Key is down?
Next Topic:Caret on beginning of selection
Goto Forum:

Current Time: Thu Mar 30 18:38:39 GMT 2017

Powered by FUDForum. Page generated in 0.03071 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software