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 & HelpPrograms › Taking actions when a program is shutting down
Page Index Toggle Pages: 1
Taking actions when a program is shutting down (Read 508 times)
Taking actions when a program is shutting down
Apr 10th, 2010, 1:03pm
 
Is there an event that gets fired or a method that gets called when a Processing program is about to shut down?  Basically I want a teardown analog to the setup method.  If no such event or method exists, does anyone have any suggestions for a more hackish way to implement this functionality?

(Dan)
Re: Taking actions when a program is shutting down
Reply #1 - Apr 10th, 2010, 1:04pm
 
Code:
void stop()
{
// Do stuff
// ...
super.stop();
}
Re: Taking actions when a program is shutting down
Reply #2 - Apr 10th, 2010, 1:36pm
 
Sweet!  Thanks!
Page Index Toggle Pages: 1