Fin du programme

General

chris-scientist

1 month 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 1 month ago

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

chris-scientist

1 month ago

No, because I use pointer.

chris-scientist

NEW 1 month ago

ragnarok93 ragnarok93

No, because I use pointer.

alxm

NEW 1 month 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

1 month ago

Thank you for your answer, @alxm.

chris-scientist

NEW 1 month ago

alxm alxm

Thank you for your answer, @alxm.

You must be logged in in order to post a message on the forum

Log in