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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement