Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Category:
Object Oriented Programming
>>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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only