Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection class clarification
Message
 
 
À
06/05/2003 14:04:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00785502
Message ID:
00785515
Vues:
11
>Does the collection class release objects automatically? It looks like it does but is this a safe assumption and I don't have to worry about dangling references/objects?

Depends on the ref count on the object in question. As your code demonstrates, if there's an outstanding ref count, then it's not released when Remove is called. However, if the collection is the only thing that has a reference to the object, then it's released when Remove is called.
Mike Stewart
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform