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 › function called on exit of application
Page Index Toggle Pages: 1
function called on exit of application (Read 1014 times)
function called on exit of application
Mar 17th, 2010, 4:51pm
 
hello,

i'd like to know if there is a function that is called when a processing application is stopped ?
the application i am working on sends midi notes to external devices, and when the application is stopped, the notes are not turned off.

I'd like to exit in a "clean" way by stopping the notes when the application is exited.

cheers,
xavier.
Re: function called on exit of application
Reply #1 - Mar 17th, 2010, 6:27pm
 
void stop(){
// Do whatever you want here.
super.stop();
}
Re: function called on exit of application
Reply #2 - Mar 17th, 2010, 10:44pm
 
Thank you for your quick reply !
I feel a little bit ashamed considering the simplicity ! Smiley
Page Index Toggle Pages: 1