Bug 18229 Walkback when closing ImageAnalyzer
Build 20020527 Win2k 1. Open the ImageAnalyzer SWT example. 2. Load an animated gif. 3. Hit 'animate' 4. Close the window. 5. Walkback
examples/org.eclipse.swt.examples/src/org/eclipse/swt/examples/imageanalyzer/ImageAnalyzer.java
public static void main(String [] args) {
		Display display = new Display();
		ImageAnalyzer imageAnalyzer = new ImageAnalyzer();
		Shell shell = imageAnalyzer.open(display);
		
		while (!shell.isDisposed())
			if (!display.readAndDispatch()) display.sleep();
		display.dispose();
	}
	public Shell open(Display dpy) {
		
		this.display = dpy;
		shell = new Shell(display);
		shell.setText(bundle.getString("Image_analyzer"));
		
		
		shell.addControlListener(new ControlAdapter() {
			public void controlResized(ControlEvent event) {
				resizeShell(event);
			}
		});
		shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent e) {
				if (animate && animateThread != null) {
					
					
					animate = false;
					while (animateThread.isAlive()) {
						if (!display.readAndDispatch()) display.sleep();
					}