We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › Execute code on exit
Page Index Toggle Pages: 1
Execute code on exit (Read 1108 times)
Execute code on exit
Nov 22nd, 2009, 2:46pm
 
Is there a way to have some code executed on app exit?

Re: Execute code on exit
Reply #1 - Nov 22nd, 2009, 3:00pm
 
you can do that by putting your code in

void stop(){
...
}
Re: Execute code on exit
Reply #2 - Nov 22nd, 2009, 3:12pm
 
Awesome, knew there was a method like that (was thinking exit())

Cedric wrote on Nov 22nd, 2009, 3:00pm:
you can do that by putting your code in

void stop(){
...
}

Re: Execute code on exit
Reply #3 - Nov 23rd, 2009, 1:20am
 
important! don't forget to include super.stop() at the end of your void stop() or it will override!
Page Index Toggle Pages: 1