Fin du programme

General

chris-scientist

3 months 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 3 months ago

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

chris-scientist

3 months ago

No, because I use pointer.

chris-scientist

NEW 3 months ago

ragnarok93 ragnarok93

No, because I use pointer.

alxm

NEW 3 months 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

3 months ago

Thank you for your answer, @alxm.

chris-scientist

NEW 3 months ago

alxm alxm

Thank you for your answer, @alxm.

Please log in to join the discussion!

Log in