fixed nasty OutOfMemoryError bug. removing basicstamp dir

This commit is contained in:
benfry
2001-09-17 12:51:29 +00:00
parent 80c04ec45e
commit 5f28fcdb19

View File

@@ -178,11 +178,18 @@ public class PdeEditor extends Panel implements PdeEnvironment {
public void doClose() {
if (playing) doStop();
if (playing) {
//System.out.println("was playing, will call doStop()");
doStop();
}
// some code to close the window here
try {
// runner.engine is null (runner is not)
((KjcEngine)(runner.engine)).close();
// runner shouldn't be set to null because it gets reused
//System.err.println("runner = " + runner);
//runner = null;
} catch (Exception e) { }
buttons.clear();
}