Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Releasing Private Datasessions
Message
De
19/05/1998 16:59:12
 
 
À
04/05/1998 13:45:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00096781
Message ID:
00100408
Vues:
60
>I'm having trouble with a reference hanging out there on a form, leaving a private datasession open after the form is closed.
>
>I call the form with a DO FORM (tried both NAME clause and without)
>
>Tried calling it from oApp.DOFORM() (Similar to TazTraders)
>
>I exit the form with a thisform.release(), and I tried RELEASE thisform.
>
>None of these gets rid of the pesky Datasession.
>
>In my app cleanup code, my CLEAR ALL runs through the destroy method of the form's objects, and it's not happy. I get a Dr Watson every time.
>
>Help, anyone ?
>
>Thanks !


Do you have any user defined properties on the form in which you store the object reference of another object? Or have you defined global variables any in the form in which you store an object reference. You must make sure you release (via setting them to .NULL. or .F.) all these object references or your form will never really be destroyed.

For example, if in one of the methods you have code like this....

Thisform.oControl = Thisform.activecontrol


You must make sure to do this....

Thisform.oControl = .NULL.
..or..
Thisform.oControl = .F.

before the form will be destroyed.

Hope this helps
GeneS
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform