我从JOGL 1.1切换到JOGL 2,由于某种原因,我遇到了奇怪的错误。
我已经解决了创建GLCanvas的问题。
public class Main {
public static void main(String[] args) {
GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.getDefault()));
}
}
当我运行它时,我得到了这个奇怪的错误。
2012-07-26 16:50:23.688 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10014cf00 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x1001512b0 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100123e50 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100151310 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100151340 of class NSCFDictionary autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.170 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10204a690 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x102056390 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100123e50 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x102055c70 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10206b4a0 of class NSCFDictionary autoreleased with no pool in place - just leaking
我见过另一个人有类似的问题,但我没有参考swt.jar
更多背景知识:
我正在使用eclipse,导入了jogl.all.jar和gluegen-rt.jar并将其原生设置为macosx文件夹。
程序运行正常,但每次运行时都会看到这些错误,这真的很烦人。
这是来自网站jogamp-all-plaforms的新副本。
任何人都有任何想法如何修复此错误?
我正在运行Snow Leopard 10.6.8