Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Containers not Forms as the main user interface...help!
Message
 
À
26/08/2008 21:48:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01315051
Message ID:
01342095
Vues:
27
Hi Stewart,

> I'm always careful to include in the Destroy method a line of code that will store NULL to the datasession object property so there are no dangling object references.

That works in 99%. You get a bit more stability when you set the property to NULL before the Destroy event fires. Usually there aren't many problems with simple scenarios involving just two objects and two classes. The more classes, objects and inheritance levels are involved, though, the more important becomes the proper order of releasing objects and the less likely it becomes that VFP happens to perform in exactly this order. By removing all reference before VFP even attempts to start clearing up multiple objects, you can remove one source of problems completely.
--
Christof
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform