Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dangling object reference - no object there
Message
 
 
À
30/08/2003 12:13:56
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00824796
Message ID:
00824803
Vues:
15
Grigore,

What version of VFP are you using?

>I was unable to close it: clear all, release all, no luck. I don't use references in those two forms.

A datasession can not close while an object instantiated inside it still exists. It's possible that the assign method is leaving an internal dangling reference that you can't do anything about.

Try taking your opg Enabled_assign code and moving it to a custom method, then call that method from your checkbox code and see if that fixes it.

>In the interactivechage of that checkbox I put some control enabled .T. of .F., depending the checkbox's value. I commented the code. Suprise. Datasession is released correctly. Uncomment the code, line by line. Found the problem:
>
>
>Thisform.Pgf.PagDataAcces.opgUpdateType.Enabled = .T.
>
>
>I double-checked this. That's the line. opgUpdateType is an optiongroup with two optionbuttons.
>
>In my optiongroup class I wrote a enabled_assign method which looks like this:
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform