PRB: RELEASE Command Does Not Release a FormLast reviewed: April 30, 1996Article ID: Q127848 |
The information in this article applies to:
SYMPTOMSIssuing 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.
CAUSEAnother reference to the object exists. An object is released from memory when all of the references to this object have been released.
RESOLUTIONYou 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.
STATUSThis behavior is by design.
MORE INFORMATION
Steps to Reproduce BehaviorFollowing are two examples that create a reference to a form.
Example One
Example Two
|
Additional reference words: 3.00 VFoxWin close
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |