Information générale
Titre:
Dangling Reference after closing form
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement