General information
Title:
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()
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only