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:13:14
 
 
To
15/08/2003 10:01:03
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00820420
Message ID:
00820482
Views:
18
Hilmar

I think that is the problem with Destroy, these objects are Custom objects, no forms.

Is there another way around this?

Thanks
Kev

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform