any pointers as to what I am doing wrong? I have uncommented the line that creates another Animator, and am able to swap the canvas and animate, but an error command is output during the process:
2004-03-03 16:44:15.109 java[9117] *** _NSAutoreleaseNoPool(): Object 0xaa11d20 of class NSSurface autoreleased with no pool in place - just leaking
The second time the canvas is swapped, a much bigger problem is output to the command line:
java.lang.IllegalMonitorStateException: current thread not owner
at net.java.games.jogl.impl.JAWT_DrawingSurface.Unlock0(Native Method)
at net.java.games.jogl.impl.JAWT_DrawingSurface.Unlock(JAWT_DrawingSurface.java:60)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.unlockSurface(MacOSXOnscreenGLContext.java:236)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.free(MacOSXOnscreenGLContext.java:155)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:265)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.invokeGL(MacOSXOnscreenGLContext.java:79)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:182)
at net.java.games.jogl.GLCanvas.display(GLCanvas.java:82)
at net.java.games.jogl.Animator$1.run(Animator.java:104)
at java.lang.Thread.run(Thread.java:552)
2004-03-03 16:48:23.612 java[9120] *** _NSAutoreleaseNoPool(): Object 0xa91b0a0 of class NSSurface autoreleased with no pool in place - just leaking
Any hints would be greatly appreciated! Thanks.
Is there any sample code that I have missed that contains canvas swapping code?