Login  Register

Re: Right method to exit/dispose on linux

Posted by elect on Feb 09, 2014; 11:27am
URL: https://forum.jogamp.org/Right-method-to-exit-dispose-on-linux-tp4031504p4031516.html

Xerxes Rånby wrote
This is expected, and is not a crash.
Your only thead, the main thread, has exited and you see the four X11Util lines when jogamp cleaning up before the jvm exit your application. You will see these lines unless your GLWindow has explicited been closed by you before the application exit.

If you want your application to keep running after main has exited then you should have spawned a new thread that keeps your application alive.
You can if you want keep the main thread alive in a loop that wait untill the glwindow has closed.
Ok, but why then on windows it doesn't happens?