Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP keeping form reference in memory
Message
De
26/05/2008 03:31:37
 
 
À
26/05/2008 02:57:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01319471
Message ID:
01319474
Vues:
23
This message has been marked as the solution to the initial question of the thread.
>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
hth
-Stefan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform