Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to deal with object's referencing each other
Message
De
15/08/2003 10:01:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
15/08/2003 06:53:13
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00820420
Message ID:
00820476
Vues:
14
Setting references to NULL seems the correct approach. Perhaps Destroy() is too late? If it is a form, you might try setting references to NULL in Form.QueryUnload().

HTH,

Hilmar.


>Hi
>
>How can I safely clear all objects in memory when there are certain objects holding references to each other?
>
>Whenever I try it ends up crashing VFP, I understand that VFP's garbage collection cannot cope with this on it's own, and for the record I have code in the Destroy Method(s) which set all references to .NULL., but this doesn't seem to be enough.
>
>It's quite a complex situation, so I wouldn't be able to describe in words, only pictures.
>
>Any ideas on how to deal with this situation?
>
>Thanks
>Kev
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform