>In some place in my framework, I do DO FORM myform NAME myvariable resulting in a myvariable becoming a type Object.
>
>When the form is close, myvariable is still an Object. Should I modify my baseform to release the object or there is an automatic way of having this behavior when a form is close?
Have you tried using the LINKED keyword?
In the VFP help in says...
The LINKED keyword of the DO FORM command allows you to link the form to the form object. If you include the LINKED keyword, when the variable associated with the form object goes out of scope, the form is released.
Example: DO FORM Customer NAME frmCust2 LINKED
Hope this helps!
Bruno Di Lalla
Consultant
BDL Computer Consulting