We are about to switch to a new forum software. Until then we have removed the registration on this forum.
After reading many posts on this and on the old processing forums I've tried to compare the ways of running code on exit; but I've found no difference between registering a dispose handler as it is often suggested or overriding the exit() function;
meaning that
void exit() {
println("closing");
super.exit();
}
will be called every time the program is closed(via program,clicking on the red X,task manager...)except when closing from the processing ide. Actually by removing the call to super.exit() the code can be runned in background while looking close(SO vulnerability?). So wich one is better?