Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing properties of a class that hold object referen
Message
 
À
13/01/2000 16:11:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00317901
Message ID:
00317908
Vues:
12
>Hello all -
>
>I'm looking for suggestions on how to release class properties that hold object references or for that matter any value. I have tried different approaches varying from -- RELEASE THIS.bogusProp --, to attempting to set the property to a different value --THIS.bogusProp = .NULL.-- I receive error on the aforementioned statements, and calling the object's destroy/release/etc.. method that the property holds a reference to doesn't work, because obviously the object won't release while there is a reference to it. (that was a mouthful =P)
>Thanks in advance for any suggestions
>
>sc

Sean, you cannot RELEASE the object property.
This.myObjectProperty = .NULL. and then releasing the object it was referring to is enough.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform