PRB: RELEASE Command Does Not Release a Form (127848)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
This article was previously published under Q127848 SYMPTOMS
Issuing the RELEASE command to release an instance variable does not
release the object referenced by the variable. If the variable holds a
reference to a form that is displayed, the form is not closed.
CAUSE
Another reference to the object exists. An object is released from memory
when all of the references to this object have been released.
RESOLUTION
You can use the AINSTANCE() function to verify that all the references to
an object have been released. AINSTANCE() builds an array of object
references.
A reference to the specified object still exists if the length of the array
is greater than 0. Another alternative is to maintain a table or an array
that updates the reference count to an object.
STATUS
This behavior is by design.
Modification Type: | Major | Last Reviewed: | 8/26/1999 |
---|
Keywords: | KB127848 |
---|
|