Login  Register

JVM won't die after shader compile

Posted by Jeffg on Nov 10, 2010; 5:15pm
URL: https://forum.jogamp.org/JVM-won-t-die-after-shader-compile-tp1877330.html

I have a Windows 7 machine, that runs a jogl app and the app exits fine (as far as closing it from the screen).  However, the JVM is not terminating in the background.  It stays active then jumps to 100% cpu on a core.  I've isolate the piece of code that's causing the issue though.

      gl.glCompileShaderARB(vertexShader);

But the shaders are working just fine.  The glGetInfoLog reports that the shader compiled successfully.  But for some reason, when I exit the application, the JVM won't terminate.

I've tried this... but it doesn't help.

      gl.glUseProgramObjectARB(0);
      gl.glDetachShader(programObject, vertexShader);
      gl.glDeleteShader(vertexShader);
      gl.glDetachShader(programObject, fragmentShader);
      gl.glDeleteShader(fragmentShader);
      gl.glDeleteObjectARB(programObject);