Re: JVM won't die after shader compile
Posted by Jeffg on Nov 12, 2010; 7:53pm
URL: https://forum.jogamp.org/JVM-won-t-die-after-shader-compile-tp1877330p1891121.html
Ok.. I got it to die.. but perhaps someone could give me some advice on minimizing the potential damage I may be doing, if any. Here is what I had to do.
try {
if (OS.startsWith("Windows")) {
String pidstr = java.lang.management.ManagementFactory.getRuntimeMXBean().getName();
String pid[] = pidstr.split("@");
Runtime.getRuntime().exec("taskkill /F /PID " + pid[0]).waitFor();
}
}
catch (Exception e) {
}