mouse enter window exception

on a mouse enter event, this exception is thrown:

Exception in thread “Thread-2” net.java.games.jogl.GLException: Error swapping buffers
at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.swapBuffers(WindowsOnscreenGLContext.java:140)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:241)
at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:194)
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:595)

i can (reluctantly) post code if necessary

Are you not falling into one of the problems raised by nnevatie in it’s answer to your other post?

In JOGL you have to keep calling openGl commands from the same thread (or make some current thread stuff that is annoying but i always forgot how since i don’t use it anymore and keep to a customized animator).

as far as i can tell, the two topics are unrelated… as there are no opengl draw commands anywhere in my program

Oh, so… if you don’t have any openGl draw code, are you sure you added you canvas to the Frame before setting any property on it ( like size ) ?

yeah that’s all fine. i started out w/ the “Getting Started” code in the sticky post on these forums. anyways, you were correct to begin with. it happened because i called System.exit(0) w/out calling animator.stop().

so this thread does merge into the other, where i have a new question
http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1102496199