Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Programmation Orientée Object
>>I think he is referring to the Release() method. For example on a form, if you have a close button you call Thisform.Release(). For a custom object you would include this method and instead of doing something like release myObj you would call myObj.Release(), setting the release flag for the Clean_up method called from the Destroy().
>
>So, would it make sense to put my calls for MyObj.Release in the Destroy method of the form? Is there a more logical place?
>
>Renoir
The way I understood the article, you call myobj.release from "outside" to get rid of the object. Then the release sets the lRelease flag for the Clean_up method. Both Release() and Destroy() would call Clean_up.
I know, it's kind of confusing but it is explained in the article that this covers for different scenarios.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement