Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dangling Reference after closing form
Message
De
06/06/2003 13:59:17
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
CodeMine
Titre:
Dangling Reference after closing form
Divers
Thread ID:
00797378
Message ID:
00797378
Vues:
70
Hi CM users, I hope this may help you quickly resolve a dangling reference issue.

Watch out for the CM hot-key Alt+F9.

I use VFP 6.0 with Codemine 7.1

I recently found that after closing a form with a Private Data Session the form wasn't fully released, ie: frmMyForm = .NULL.

I did the usual reviews trying to establish what object may not have been released and soon realized the code in the form.Load() had a double DODEFAULT(), for example:

* Form.Load()
IF NOT DODEFAULT()
RETURN .F.
ENDIF

DO SOME MORE CODE HERE

RETURN DODEFAULT() * Inserting this by accident results in a dangling reference
RETURN .T. * This avoids dangling reference after form releases()
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform