Using sleak with an eclipse-RCP-application [message #244611] |
Thu, 03 January 2008 15:58 |
Rudi Missing name Messages: 17 Registered: July 2009 |
Junior Member |
|
|
Hello,
I have some doubt about resource allocation in my application based on
eclipse-rcp, so I found sleak for monitoring SWT graphics
resources(http://www.eclipse.org/articles/swt-design-2/sleak.htm).
The problem I have is, that I can't instantiate a Display-Object as
described in the sleak-documentation:
DeviceData data = new DeviceData();
data.tracking = true;
Display display = new Display(data);
Sleak sleak = new Sleak();
sleak.open();
The problem is, that the Display-Object is created like this in the
Application.java-Class of my RCP-Application:
Display display = PlatformUI.createDisplay();
It is not possible, to pass a DeviceData-Object to the
createDisplay()-method.
When I start slek, i just get the following warning: Device is not
tracking resource allocation
Could anyone please tell me, how I can configure sleak or my app, that I
can use sleak?
Thank you in advance,
Rudi
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09257 seconds