Dave,
Calling the Release method of the form class actually removes it from the collection. The only reference to the form class I found after releasing both the form variable and the colection object itself, was in the Forms collection of both _VFP and _Screen.
Issuing a Clear All was the only thing I found to actually release the held object reference.
Regards.
>Mathais,
>
>No bug, you still have two outstanding object refs to o2 held by the collection. An object can not destruct until all references to it are removed VFP has always worked this way.
>
>You can going to have to tell the collection to remove the references, once you do that the form created will destroy and the global memvar will release.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao