Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Collection with multiple refs to the same object - Bug
Message
From
29/10/2003 03:17:07
Matthias Will
BiCON Systemtechnik GmbH
Karlsruhe, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00843625
Message ID:
00843941
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform