net.java.games.jogl.GLException: Error swapping bu

Hello;
I am using Xj3D in my application of Java, and when I close the application is then when it happens the error.
Thanks to help me.

If you shut down from an AWT Event thread, you can just set a boolean value to true, and in the rendering loop stop the loop.
And if you use a thread, do thread.join(), thread.stop() ( and catch InterruptedException ).

see my comment regarding syncronous input on this thread: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=xith3d;action=display;num=1115731037#3

It will solve this problem too.

Will.