Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » "Invalid thread access" even when in UI thread
"Invalid thread access" even when in UI thread [message #111382] Thu, 06 November 2008 06:22 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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)...
>
Previous Topic:Selection event firing problem
Next Topic:Theming not applied on Text and Label Font
Goto Forum:
  


Current Time: Wed Feb 08 22:57:44 GMT 2023

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

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

Back to the top