Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Possible WISH LIST item?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149579
Message ID:
00149742
Views:
24
Hi Rick,

>I don't think so - if you have left over references in other areas of
>your code that object will stick around.

Nope. Actually there are two commands in VFP that don't take care about the internal reference counter, one is RELEASE THIS, the other THIS.RemoveObject().

>Doing RELEASE THIS is also not safe, because you're telling the object to
>release itself before state is cleaned up.

Somehow I don't grasp this. If RELEASE THIS is in my Release method and I call loObject.Release I tell the object to release itself, since I don't need it anymore. Why shouldn't that be safe?

>I firmly believe that you should never release your object internally,
>at least not through the language. Rather I belive in having Release
>methods that make sure that when the object goes away all hanging
>refs get cleaned up properly.

That's exactly what Mark and I are talking about.

Christof
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform