Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The object itself
Message
De
28/05/2007 23:16:05
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
28/05/2007 22:33:41
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
01228871
Message ID:
01228964
Vues:
13
>>>Beware with this method since I doubt that the GC of VFP will clean up the class when it is released because of the circular reference. I've done a quick test and you can see that the memory is not released.
>>
>>I've tried to add
>>
>>this.self=null
>>
>>in the .destroy() of the class, but the consumption remains the same. Doing a Set Procedure, then later Release Procedure also did not help.
>
>No, you need to put 'This.Self=null' in the Release(), and then you need to release the object - abc.Release() instead of (or after) abc = null. Of course this means you always need to release the object explicitly. Letting it go out of scope won't do the trick.

What about objects based on classes which don't have a native .release() event - should we do a "release this" before "this.self=null" in .destroy(), or what? Did you try that?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform