may have fixed the hanging bug.. or at least fixed it for opengl

This commit is contained in:
benfry
2004-12-13 07:01:40 +00:00
parent 2e648173d9
commit 850fb4ae0f
3 changed files with 34 additions and 11 deletions

View File

@@ -123,6 +123,8 @@ public class PdeRuntime implements PdeMessageConsumer {
processInput = new SystemOutSiphon(process.getInputStream());
processError = new PdeMessageSiphon(process.getErrorStream(), this);
processOutput = process.getOutputStream();
//processOutput.write(' ');
//processOutput.flush();
} else { // !externalRuntime
//Class c = Class.forName(className);
@@ -331,15 +333,18 @@ public class PdeRuntime implements PdeMessageConsumer {
//System.out.println("killing external process");
try {
//System.out.println("writing to stop process");
System.out.println("writing to stop process");
processOutput.write('s');
System.out.println("written");
processOutput.flush();
System.out.println("flushing");
} catch (IOException e) {
//System.err.println("error stopping external applet");
//e.printStackTrace();
close();
}
System.out.println("out");
}
}