Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dangling reference
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00663016
Message ID:
00663112
Vues:
21
>Hi Nadya,
>
>do you mean, you're adding an object to _SCREEN or to the form?
>
>Armin
>
>>I found, that if form has a private DS and in the life of the form we add some object to the screen, the Form's datasession remains open after form is closed...
>>
>>Do you know, how to free the object reference, if it's possible?
>>
>>I changed the program to instantiate an object instead of adding it to the screen, so the problem went away, but I'm wondering, if there is another better solution.
>>
>>Thanks in advance.

It's a program by Rick Bean, which simulates timeout messagebox in VFP6. In the program code the timer object is added to the screen. This somehow caused form's DS to remain open. Yesterday in the everning I logged through PCAnywhere and tried few approaches to remove reference, but got errors. So finally I got rid of _screen at all and release the variable, which holds the object reference at the end of the program. This fixed the problem.

However, the point of adding this object to the screen, as I understand it, was to not instantiate the object again, if it was already added. Anyway, Init doesn't take much time, so I guess, it was the best approach to take.

I would not count, how long my colleague and I tried to find out the reason for the problem...
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform