Information générale
Catégorie:
Programmation Orientée Object
>>>Hi,
>>>
>>>VFP6 SP4 -
>>>
>>>I'm thinking of putting an application together that adds and removes objects on the fly to a form by the drove - whole screens of them at a time - dynamically adding, deleting, adding, deleting, etc dozens of individual text, combo, label, etc. controls - dozens of times while the form is open.
>>>
>>>Initial tests indicate that, while the concept works very well and performance is very good, memory use (sys 1016) just goes up and up with every iteration. So question - is there something more than jsut removing the objects (and any references) I need to do to clear up the memory - or is this a memeory leak issue and thus a technique that should be avoided?
>>>
>>>TIA,
>>
>>What does the code look like that is removing and releasing them now?
>
>just looping around the controls collection and using removeobject - but you may have given me an idea
Releasing the variable reference?
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