Skip to main content



      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 02:47 Go to next message
Eclipse UserFriend
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 12: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: Sat Jul 12 18:59:48 EDT 2025

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

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

Back to the top