gpt4 book ai didi

java - 泄漏 (SWT & RCP) : Device is not tracking resource allocation (eclipse 4. 3)

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:06:00 25 4
gpt4 key购买 nike

我的 RCP 应用程序(带有 OpenCV java 的视频播放器)抛出了著名的:

org.eclipse.swt.SWTError: No more handles 错误

所以现在我找到了 Sleak 和一个 tutorial

我尝试了第一种方法,但是当我启动应用程序并单击 Sleak-View 中的快照按钮时,我得到: “警告:设备未跟踪资源分配”。

当我以第二种方式进行操作时(.options 文件和 eclipse.ini 中的 -debug(在 -vmargs 之前插入)我在 sleak View 中得到了一些结果,但它们都是 Eclipse 资源...就像那里说的那样我已经跟踪了 eclipse ...但我不想...

我在 Eclipse 4.3 SR1 (RCP) 上运行 sleak build对于 4.3(我已经在 4.4 版本中尝试过,但它也没有用)

并且在我的 RCP (e4) 应用程序中没有我做的部分

Display display = PlatformUI.createDisplay();

喜欢提议here .

最佳答案

我刚遇到这个问题并解决了它。

转到调试配置-> 跟踪选项卡。这里确保您在左侧选择了 org.eclipse.ui 并在右侧选择了 tracing/graphics and debug。现在启动它。在您的 RCP 中,您现在将获得 secret 信息。

关于java - 泄漏 (SWT & RCP) : Device is not tracking resource allocation (eclipse 4. 3),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21460698/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com