Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Trigger Destroy() Event-- Foxpro DLL memory prob
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00532817
Message ID:
00533059
Vues:
13
Well, add a call to destroy the lower-level class in the destroy() function of the upper-level class.

>I tried setting the internal reference to .NULL. and the outer class reference variable to .NULL. (to trigger it's Destroy()). I then stepped through each line of the code and it did not trigger neither the outer class' Destroy()event nor the nested class' Destroy() event.
>
>The Destroy() event fired only when the test program (which created the outer class) terminated. However it only fired the Detroy() event of the outer class, but not the inner class so I do not think it released it from memory. in my Foxpro DLL I must ensure/force FOxpro to release the inner/nested class instantance...How do I do this?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform