Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP keeping form reference in memory
Message
From
26/05/2008 03:44:01
 
 
To
26/05/2008 03:41:47
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319471
Message ID:
01319477
Views:
21
>Thank You :)

De nada :-)


-Stefan

>>>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 && nothing left
>>
>
>Ok, sounds right.
>
>Thank You :)
Previous
Reply
Map
View

Click here to load this message in the networking platform