Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Collection with multiple refs to the same object - Bug
Message
De
29/10/2003 03:17:07
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Allemagne
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00843625
Message ID:
00843941
Vues:
16
Hi David,

you can use this with other baseclasses too. Just add a Release()-method containing a RELEASE THIS if called directly - and you are able to destroy all references of this object with Object.Release(). Except there were 2 of them stored to a collection :-/.

I worked around this using an extra collection object containing the "real" item as item of the original collection. So each placeholder-collection in the original collection only contains one reference. If there are two placeholders with the same reference and different keys it is no problem anymore because the references are stored in different collections and seem to be released correctly. I had to modify Add(), Item() and Count_access to achieve transparent behavior. But it works now. Lets see how reliable :-).

Regards
Matthias
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform