Fin du programme

Général

chris-scientist

il y a 5 ans

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 il y a 5 ans

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

chris-scientist

il y a 5 ans

No, because I use pointer.

chris-scientist

NEW il y a 5 ans

ragnarok93 ragnarok93

No, because I use pointer.

alxm

NEW il y a 5 ans

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

il y a 5 ans

Thank you for your answer, @alxm.

chris-scientist

NEW il y a 5 ans

alxm alxm

Thank you for your answer, @alxm.