running code on exit; again

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() {

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?

Sign In or Register to comment.