"Invalid thread access" even when in UI thread [message #111382] |
Thu, 06 November 2008 06:22 |
Eclipse User |
|
|
|
Originally posted by: erdal.karaca.airbus.com
So far, I have debugged the app and the code which throws the error looks
like:
is Widget.isValidThread():
boolean isValidThread() {
return getDisplay().getThread() == Thread.currentThread();
// return RWTLifeCycle.getThread() == Thread.currentThread();
}
When inspecting:
|
|
|
Re: "Invalid thread access" even when in UI thread [message #111396 is a reply to message #111382] |
Thu, 06 November 2008 06:24 |
Eclipse User |
|
|
|
Originally posted by: erdal.karaca.airbus.com
...
When inspecting:
getDisplay().getThread() returns "Thread[UIThread [12p3ckhrzo7j5],6,]"
and Thread.currentThread() returns "Thread[UIThread
[12p3ckhrzo7j5],6,main]"
Both threads seem to be the same (same session id)...
|
|
|
Re: "Invalid thread access" even when in UI thread [message #111672 is a reply to message #111396] |
Mon, 10 November 2008 17:31 |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Erdal,
apparently they are not the same, otherwise isValidThread() would
return true;)
You somehow managed to create two UIThreads for one session
(12p3ckhrzo7j5 is the session id). One of them belongs to a thread
group called "main" the other one has no thread group.
Could you describe how to reproduce this reliably or provide a test
case, snippet, etc. to do so?
Cheers,
Rüdiger
Erdal Karaca wrote:
> ...
> When inspecting:
> getDisplay().getThread() returns "Thread[UIThread [12p3ckhrzo7j5],6,]"
> and Thread.currentThread() returns "Thread[UIThread
> [12p3ckhrzo7j5],6,main]"
>
> Both threads seem to be the same (same session id)...
>
|
|
|
Powered by
FUDForum. Page generated in 0.02483 seconds