>>Dear All,
>>
>>I always tought that once form is released, it should be wiped out completely from memory. However, when form is released there is still reference in memory visible. This is happening in both VFP6 and 9.
>>
>>To reproduce; just make new basic dummy form and run it. It will be presumably called 'form1' . When you release form do
>>
>>
display memory like form1
>>
>>Reference is still there; Any toughts ?
>Hi,
>
>I'd say that's "by design".
>In your example the Do Form command implicitly creates a reference variable.
>When you do a Thisform.Release() afterwards (or form1.Release() respectively), the reference variable is still there but it contains .NULL., right?
>So assumed you want to store the reference pointer in another variable/property in your code intentionally (using the Do Form .. Name clause), then it would not be desirable if form.Release() would release those reference vars too - instead they are left and contain .Null.
>
>As opposed to something like this:
>
>DO FORM c:\users\stefan\desktop\form1.scx LINKED
>RELEASE form1
>DISPLAY MEMORY LIKE form1
>
Ok, sounds right.
Thank You :)