From 5f28fcdb19238fc4ce67022bd83139dc18ed99ad Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 17 Sep 2001 12:51:29 +0000 Subject: [PATCH] fixed nasty OutOfMemoryError bug. removing basicstamp dir --- processing/app/PdeEditor.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/processing/app/PdeEditor.java b/processing/app/PdeEditor.java index f11985834..0c5cc5ff1 100644 --- a/processing/app/PdeEditor.java +++ b/processing/app/PdeEditor.java @@ -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(); }