Fin du programme

General

chris-scientist

5 years ago

Bonjour,


J'aimerai savoir s'il y a une fonction qui est appelé à la fin du programme ou si l'on peux savoir que l'utilisateur a fermé le programme ?


En effet, mon programme fait appel à des objets et j'aimerai les détruire à la fin du programme pour ne pas polluer la mémoire...


Merci d'avance

ragnarok93

NEW 5 years ago

Isnt objects die on their own when they're not used anymore ?

chris-scientist

5 years ago

No, because I use pointer.

chris-scientist

NEW 5 years ago

ragnarok93 ragnarok93

No, because I use pointer.

alxm

NEW 5 years ago

A program ends when the user turns off the Gamebuino, or when the user exits back to the loader via the Home menu. In both cases the unit is reset, so all the memory is effectively freed at the end without you having to do anything.

chris-scientist

5 years ago

Thank you for your answer, @alxm.

chris-scientist

NEW 5 years ago

alxm alxm

Thank you for your answer, @alxm.