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
displayImage(imageDataArray[imageDataIndex]);
		}	
	}
	void displayImage(ImageData newImageData) {
		if (incremental && incrementalThread != null) {
			
			synchronized (this) {
				incrementalEvents = null;
			}
			
			
			while (incrementalThread.isAlive()) {
				if (!display.readAndDispatch()) display.sleep();
			}
		}
					
		
		if (image != null) image.dispose();
		try {
			
			image = new Image(display, newImageData);
			imageData = newImageData;
		} catch (SWTException e) {
			showErrorDialog(bundle.getString("Creating_from") + " ", currentName, e);
			image = null;
			return;
		}
		
		String string = createMsg(bundle.getString("Analyzer_on"), currentName);
		shell.setText(string);