| [news.eclipse.platform.swt] Re: Runnable in synchExec() never gets started |
ShutdownHook shutdown = new ShutdownHook(); Thread mThread = new Thread(shutdown,"SHUTDOWNTHREAD");
myScanner.setStatusMessage("The end is near any moment now"); myScanner.unLoad(); //shell.dispose();
if (display != null && !display.isDisposed()) {
myScanner.setStatusMessage("I am about to dispose of this application");
display.syncExec(shutdown);
mThread.start();
} else {
myScanner.setStatusMessage("U have already disposed of the application here...go Home");
}
.....
-- Thanks, Rich Kulp