| Summary: | Invalid thread access during Fading | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Benjamin Muskalla <b.muskalla> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | RESOLVED WORKSFORME | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | bulrich, eclipse.felipe, remy.suen, steffen.pingel | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Benjamin Muskalla
Moving to platform to get some input. The code snippet looks like this:
Display.getDefault().syncExec(new Runnable() {
public void run() {
if (stopped) {
return;
}
if (shell.isDisposed()) {
stopped = true;
return;
}
shell.setAlpha(currentAlpha);
...
}
});
Under what circumstances would the invocation of shell.setAlpha(...) cause an InvalidThreadException?
is SwtUtil$FadeJob$2.run running code in another thread ? The code snippet in comment 1 can not be causing InvalidThreadException. Created attachment 175603 [details]
SWTUtil.java
As far as I can tell, the Runnable should execute on the UI thread only. I have attached the whole class for reference. Benjamin, just to be sure, you are running a recent version of Mylyn, right? Mylyn SDK 3.5.0.I20100626-2300-e3x Benjamin, are you still seeing this error? Haven't seen it in a while. Thanks. I'll mark this as closed for now. Please reopen in case you run into this again. |