Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper Object Cleanup after Instantiation
Message
 
À
23/05/2002 14:19:06
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00660655
Message ID:
00660793
Vues:
17
Gary,

>What I should be doing to not have datasession leftovers properly clean up my instantiated bizobj classes?

>Also, does using this.addobject() add any automatic house keeping of benefit or is direct instantiation in code just as good?

If you're dropping business objects on the form at design time and not cross-registering any objects with each other, then the Framework can handle the cleanup for you. If you've dynamically added a business object to the form, and are holding references to it in one or more additional places, you'll want to make sure you clear those references and manually release the business object by calling its Release() method. You might want to look closer at the forms in which this is occurring and see if you're doing any of these things.

Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform