>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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only