Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to nuke objects in Destroy?
Message
 
 
À
13/06/2009 12:06:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01405727
Message ID:
01405728
Vues:
125
This message has been marked as the solution to the initial question of the thread.
The objects that create such references should clean up after themselves in Destroy. Otherwise those objects cannot be released and form cannot be released as well.
    Thisform.oGrid = NULL
>I have a form in which I have saved references to some of the objects in the form -- the Init for these objects look like:
>
> Thisform.oGrid = This
>
>This allows me to reference the grid without knowing its full containership.
>
>So, my question is this: when the form is closing, there are all these references to objects contained in ThisForm. Do I need to clean them up, or is this not a problem?
>
>Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform