Sleak SWT tool, Device is not tracking resource allocation

爱⌒轻易说出口 提交于 2020-01-13 18:36:46

问题


I'm having trouble in testing an RCP application with Sleak because it does not display anything, it only shows the message "WARNING: Device is not tracking resource allocation". I've setup Sleak from this tutorial and I don't know what's wrong. Does anyone know a solution for this? Thanks in advance.


回答1:


Do you have the correct version? Can you see the sleak view in your RCP-application? If not make sure it's in your launch configuration. Also double check that you have set the

org.eclipse.ui/debug=true org.eclipse.ui/trace/graphics=true

correct in the tracing tab. There are properties with similar names.




回答2:


You can write

org.eclipse.ui.internal.misc.Policy.DEBUG_SWT_GRAPHICS = true;
org.eclipse.ui.internal.misc.Policy.DEBUG_SWT_DEBUG = true;

before

Display display = PlatformUI.createDisplay();

This will create in Workbench.createDisplay() method new Display with data tracking.



来源:https://stackoverflow.com/questions/2108430/sleak-swt-tool-device-is-not-tracking-resource-allocation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!