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
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 693
Registered: January 2012
Senior Member

Please post a standalone example -- this snippet doesn't demonstrate your issue (i.e., what shell?).

Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:swt source code Library.java, IS_64
Next Topic:FileDialog doesnt return entire filter extension
Goto Forum:
  


Current Time: Tue Dec 12 18:11:04 GMT 2017

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

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