Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Shell is disposed when there is exception in syncExec.
Shell is disposed when there is exception in syncExec. [message #1740349] Fri, 12 August 2016 06:47 Go to next message
hui li is currently offline hui liFriend
Messages: 1
Registered: August 2016
Junior Member
We have the following code,

getDisplay().syncExec(new Runnable() {
@Override
public void run() {
try {
String s=null;
s.endsWith("");
} catch (Throwable e) {
e.printStackTrace();
}
}
});

As you see, the exception has been caught in the syncExec thread. But the shell is disposed.

Is it a bug or an intended behavior? Thanks.
Re: Shell is disposed when there is exception in syncExec. [message #1740421 is a reply to message #1740349] Fri, 12 August 2016 16:49 Go to previous message
Eclipse UserFriend
Please post a standalone example -- this snippet doesn't demonstrate your issue (i.e., what shell?).
Previous Topic:swt source code Library.java, IS_64
Next Topic:FileDialog doesnt return entire filter extension
Goto Forum:
  


Current Time: Fri Apr 19 10:44:49 GMT 2024

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

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

Back to the top