Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Change to European date
Message
From
16/11/2018 15:45:36
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01663305
Message ID:
01663480
Views:
39
>>It's actually hard to create a dangling reference, unless you get into some complicated scheme (e.g. two objects keeping references to each other in their properties). If you keep just one reference to it (as in thisform.oSettings), it destroys cleanly, no worries.
>
>But if you create this reference .oSetting (in LOAD or in INIT), don't you have to set it to NULL in Destroy method of the form?

Perhaps, if you are experiencing problems and are chasing phantoms, you do that to get a suspect off the list. But normally, when the form destroys, this reference is gone. Then .oSetting's reference count drops to zero, and it gets released too.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform