Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need to nuke objects in Destroy?
Message
 
 
To
13/06/2009 12:06:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01405727
Message ID:
01405728
Views:
124
This message has been marked as the solution to the initial question of the thread.
The objects that create such references should clean up after themselves in Destroy. Otherwise those objects cannot be released and form cannot be released as well.
    Thisform.oGrid = NULL
>I have a form in which I have saved references to some of the objects in the form -- the Init for these objects look like:
>
> Thisform.oGrid = This
>
>This allows me to reference the grid without knowing its full containership.
>
>So, my question is this: when the form is closing, there are all these references to objects contained in ThisForm. Do I need to clean them up, or is this not a problem?
>
>Thanks in advance.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform