Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP 9 Collections and memory leaks
Message
De
05/04/2017 10:51:30
 
 
À
05/04/2017 09:54:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01649799
Message ID:
01649808
Vues:
77
Hi Lutz

>Could you be more precise wath you do to create the leakage?

The application is relatively complex as I said.

I used collections in the way I do in python as general "containers for other kind of objects". As far as I can remember, the very leak was on parts of XML-objects parsed via COM and kept in memory. I kept the recursively described xml objects - of course since this non trivial app cannot do without - but just replaced their storage with an array-based one. When the array is dropped, the objects embedded in these arrays are fully dropped.

Beware of collections in no triival cases. They just do not release the memory. No need to try to associate tentative object dropping code in the destroy event à la myvar = .NULL. It won't work!

Daniel

PS:Tore is correct about the article by the way:) Rick - and Tore - are wonderful resources on VFP (and other things as well of course...)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform