Re: X11 warning/error message
Posted by ThomasR on Feb 11, 2015; 5:34pm
URL: https://forum.jogamp.org/X11-warning-error-message-tp4034019p4034022.html
How should a Canvas3D be closed when closing the associated JFrame to free resources?
Here's what we're doing now:
from a WindowEvent (closing) so on the EDT:
View.removeCanvas3D()
View.attachViewPlatform(null) // was recommended in earlier versions of Java3D
Universe.removeAllLocales()
Locale->BranchGroup.detach() // top level scene branch
Frame.dispose()
Can you recommend a better procedure?
But I'm not sure why the computer monitor would blank out before opening a JFrame with a Canvas3D. This
was with pre9, so I will verify with pre11.