>You miss my point which is simply that RELEASE MyVar should release MyVar and nothing else.
>
OK... sorry that I jumped in in the middle here, but doesn't
RELEASE MyVar
only release MyVar?
Of course, the consequences of that action, if MyVar is the one and only reference to an object, the object is released also.
I also agree... we should be able to release an object no matter how many references there are to it... so... perhaps...
RELEASE MyVar && releases the variable
MyVar.Release() && releases the object
The above, seems right... however, I also think that MyVar.Release should release an object even if there are references to it. I think this is as it is supposed to be, but a major cause of bugs... since, the object doesn't really release.
BOb
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