We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So I am using Processing via Eclipse and the processes just wont close after the exit of my program. I noticed it after my computer startet to get really slow and I opened the task manager and yay 10 javaw processes! When I use the Processing editor however, it does close the processes normally.
regards, TPRammus
Answers
Can you report your problem here: https://github.com/processing/processing/issues
Kf
But that doesn't seem to really be an Processing issue I guess... But okay I will report it there.
regards, TPRammus
Not sure if this will help but use the red stop button in Eclipse to stop the Processing sketch rather than the one on the sketch. Worth trying.
@quark But what about the exported version of the program? It wouldn't really bother me if it would only affect my project when running it in Eclipse.
Solved! I actually submitted a new issue but I figured it out now. You need to call System.exit(0); for the Java process to actually terminate. And since there is the method public void exit() which will be called when the user closes the program, you can work out something like this:
(it will automatically called at the exit of your program) Thanks for all the help!
regards, TPRammus
It is not clear in the documentation but if you create a
public void exit()
method then you must call the overridden method as shown in your example.Typically you would have