Problems With SWT on Mac

江枫思渺然 提交于 2019-12-02 02:08:34

Is the application bundled or are you running it from the command line? If bundled, you need to put the key StartOnMainThread with value true in the Java dictionary of the Info.plist file. If not bundled, the argument is java -XstartOnFirstThread. Yes, they are different, and yes, that's unfortunately annoying.

SWT does not have garbage collection .. My guess is that the code you are running is causing an OS memory leak which is being reported through the eclipse console.

My suspicion is confirmed by the error message not being a Java error message, but an Obj-c error message instead.

you can read more about it here.. http://www.eclipse.org/articles/swt-design-2/swt-design-2.html

and here is a link talking about the Obj-c error you are actually seeing. http://www.idevgames.com/forum/archive/index.php/t-7710.html

good luck!

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