Job found still running after platform shutdown.
Exception message seems to indicate that you schedule the setMessage during shutdown, so probably prefixing your code with something like if (PlatformUI.getWorkbench().isClosing()) return; should help. Otherwise, try changing asyncExec to syncExec to see if problem disappears.
使用了asyncExec异步线程执行job,导致eclipse关闭后,job仍然执行。
解决方法: if (PlatformUI.getWorkbench().isClosing()) return;

本文讨论了在Eclipse平台关闭时,异步执行的job仍然运行的问题,并提供了解决方法:通过检查平台是否正在关闭,来决定是否停止job执行。建议将代码逻辑调整为:if(PlatformUI.getWorkbench().isClosing())return;以确保job在适当的时候停止执行。
853

被折叠的 条评论
为什么被折叠?



