S-Leak is a tool for implementing SWT graphics resource tracking. It helps the developer of an SWT based application with tracking of resources allocates. Using S-Leak, it is possible to detect resources that should have been disposed but werent.

Note that in order for S-Leak to function, the user must have created the Display object with device data collection enabled. This is done by using the second constructor of the Display class. Example code is shown here:

	public class SomeClass {
		public final static void main(final String args) {
			final DeviceData deviceData = new DeviceData();
			final Display display = new Display(deviceData);
			
			// ... etc 
		}
	}
	
The S-Leak tool can be used outside of Eclipse so long as the user doesnt attempt to create the view part. The sleak core can be used in any SWT application but the other packages are Eclipse, or Eclipse RCP, specific.

This program and the accompanying materials are made available under the terms of the Common Public License v1.0 which accompanies this distribution, and is available at the following URL: http://www.eclipse.org/legal/cpl-v10.html

Copyright(c) 2003-2005 by the authors indicated in the @author tags.
All Rights are Reserved by the various authors.