Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AddObject/CreateObject
Message
De
22/03/2002 09:37:31
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
22/03/2002 09:34:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00633293
Message ID:
00636005
Vues:
24
>I've just been checking to see what happens, possibly the problem is due to the element not actually being deleted from the array.
>
>I don't think a 'memory leak' is going to be a problem, but eventually running out of memory might be. The added object is retained in the controls array of the form & the controlcount is not decremented when using your method of adding to an array, whereas when adding uniquely named objects, the object is removed from the control array & the countrol count decremented.

Well, I have used this for years now, and didn't seem to have serious trouble.

Anyway, I will have to check for memory leaks, and for methods of destroying individual items, and modify my FAQ correspondingly. If there turns out to be a memory leak, I will have to include a caveat, and alternative methods (as explained by Armin).

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform