Project: SWT
Bug 247318 Crash creating new display after disposing previous one
Reported: 2008-09-15 13:25:46 | Status: resolved fixed

This snippet crashes. public static void main (String [] args) { final Display display = new Display(); final Shell shell = new Shell(display); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); new Display().dispose(); }

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Display.java