mirror of
https://github.com/processing/processing4.git
synced 2026-02-14 02:45:36 +01:00
bit more work on threads, making sure all windows quite
This commit is contained in:
@@ -282,6 +282,10 @@ public class ErrorCheckerService implements Runnable{
|
||||
checkCode();
|
||||
checkForMissingImports();
|
||||
}
|
||||
checkerClass = null;
|
||||
astGenerator.disposeAllWindows();
|
||||
astGenerator = null;
|
||||
logE("Thread stopped: " + editor.getSketch().getName());
|
||||
}
|
||||
|
||||
private void checkForMissingImports() {
|
||||
@@ -559,20 +563,20 @@ public class ErrorCheckerService implements Runnable{
|
||||
} catch (ClassNotFoundException e) {
|
||||
System.err.println("Compiltation Checker files couldn't be found! "
|
||||
+ e + " compileCheck() problem.");
|
||||
stopThread();
|
||||
pauseThread();
|
||||
} catch (MalformedURLException e) {
|
||||
System.err.println("Compiltation Checker files couldn't be found! "
|
||||
+ e + " compileCheck() problem.");
|
||||
stopThread();
|
||||
pauseThread();
|
||||
} catch (Exception e) {
|
||||
System.err.println("compileCheck() problem." + e);
|
||||
e.printStackTrace();
|
||||
stopThread();
|
||||
pauseThread();
|
||||
} catch (NoClassDefFoundError e) {
|
||||
System.err
|
||||
.println(e
|
||||
+ " compileCheck() problem. Somebody tried to mess with Experimental Mode files.");
|
||||
stopThread();
|
||||
pauseThread();
|
||||
}
|
||||
// log("Compilecheck, Done.");
|
||||
}
|
||||
@@ -793,7 +797,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
} catch (Exception e) {
|
||||
log("Exception at updateErrorTable() " + e);
|
||||
e.printStackTrace();
|
||||
stopThread();
|
||||
pauseThread();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1397,6 +1401,7 @@ public class ErrorCheckerService implements Runnable{
|
||||
* Stops the Error Checker Service thread
|
||||
*/
|
||||
public void stopThread() {
|
||||
logE("Stopping thread: " + editor.getSketch().getName());
|
||||
stopThread.set(true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user