Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to deal with object's referencing each other
Message
From
15/08/2003 10:01:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
15/08/2003 06:53:13
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00820420
Message ID:
00820476
Views:
13
Setting references to NULL seems the correct approach. Perhaps Destroy() is too late? If it is a form, you might try setting references to NULL in Form.QueryUnload().

HTH,

Hilmar.


>Hi
>
>How can I safely clear all objects in memory when there are certain objects holding references to each other?
>
>Whenever I try it ends up crashing VFP, I understand that VFP's garbage collection cannot cope with this on it's own, and for the record I have code in the Destroy Method(s) which set all references to .NULL., but this doesn't seem to be enough.
>
>It's quite a complex situation, so I wouldn't be able to describe in words, only pictures.
>
>Any ideas on how to deal with this situation?
>
>Thanks
>Kev
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform