Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing objects
Message
 
 
To
09/01/1999 21:27:15
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00172935
Message ID:
00174499
Views:
44
Nancy,

It really depends.

If it's a CreateObject() to some external object or even a reference to an already existing object, there isn't a requirement to explicitly .null. it. When the object finishes destructing that reference to the other object will be removed and the other object's reference counter will decrement.

If it's a reference to one of it's own contained objects it'll have to be .null.ed out so the object can destruct.

Either way, I think the best design is to explicitly set object ref properties to .null.

>That is not correct, as far as my experience goes.
>
>>I think if you put the object reference into a form's user-defined property, say THISFORM.oRef, you do not need an explicit release (THSIFORM.oRef=.NULL.),
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform