Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dangling Reference after closing form
Message
From
06/06/2003 13:59:17
Dave Macfarlane
Condo Navigator Ltd.
Alberta, Canada
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
CodeMine
Title:
Dangling Reference after closing form
Miscellaneous
Thread ID:
00797378
Message ID:
00797378
Views:
69
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
Map
View

Click here to load this message in the networking platform