Hi Marco,
Thanks for jumping in.
"When Visual FoxPro releases a collection, which contains object references, it also releases any objects in the collection if they are not referenced elsewhere. Make sure to release objects and any references to those objects from a collection before releasing the collection itself from memory."
I understand your point... However I just replaced the collection by an array. And the garbage collector started to work again. I stick to my point: there is an issue here. Does not mean that my code is perfect by the way. But the sheer substitution of the container should not impact the behaviour of the garbage collector. It clearly did. As a fox-die-hard -yep 1986 or 1987 - this is possibly one of the very few bugs I ran into.
Anyway, collections are certainly not fist class citizens as they are in python. They were a late addition to VFP. It shows. I remain thoroughly impressed by this old dog... You can't teach an old dog new tricks, as they say:)
Daniel
Précédent
Suivant
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