Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Possible WISH LIST item?
Message
De
30/10/1998 09:33:25
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00149579
Message ID:
00152766
Vues:
45
>>One thing would be nice to have, and JimN is right about it - .Release should return .f. if it fails because reference count is not zero when it attempts to release
>
>But Release doesn't fail. It always releases the memvar given as its argument (which has the side effect of decrementing the reference count of the object the memvar references).
>
>However, even if that point is considered pedantic <s>, what would you do with the result? And if you really do need to know whether an object (not the memvar referencing it) has been released, you can simply use Type().

Right - the better way would be to have .RefCount exposed, so I could check a reference to see if it's the last one _before_ I release it. Would be a nice thing to have, at least in development.

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
Répondre
Fil
Voir

Click here to load this message in the networking platform