Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bindevent to a... hmm
Message
De
19/11/2015 11:46:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
19/11/2015 09:47:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01627638
Message ID:
01627647
Vues:
56
>>Just a mind experiment, and before I try it myself, want to check if anyone already did this.
>>
>>Create an object, assign it to a local variable. Then bindevent() something to one of this object's methods.
>>
>>What happens when the variable goes out of scope? I'm expecting that the binding doesn't increase reference count, so the object will destroy and the binding will vanish. Correct?
>
>When the object is released (or the var that holds it is out of scope), all events are automatically unbinded.

Ah - that's it, I wasn't sure it's completely automatic. Well, thanks for confirming.

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