Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form not releasing on Close
Message
 
 
To
17/11/2003 10:09:09
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00849922
Message ID:
00850663
Views:
22
Amanda,

You can explicitly do it with:
this.oSomething = .null.
Normally an object that was added via an AddObject() call, or dropped onto a form/class in the designer fits in the VFP object containership model. And VFP will clean up these objects correctly by itself.

If you create an additional object reference to an object it increases an internal reference counter, and an object will not destruct until its reference count goes to zero. A container (like form) can not destruct until all of its contained objects destruct.

I put together a tool to help people trackdown dangling object references, you can get it from my website, under Q&A, OOP, article qoop017

>Ok, I hate to sound terribly dense, but how do I set a reference to NULL? I am not sure how to check for dangling object references either. Please be kind, I am new :)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform