Information générale
Catégorie:
Gestionnaire d'écran & Écrans
I want to point out that while it is a good practice to clear every pointer when you are done with them, it's not an obligation in that situation since the second form should be modal or the developper should be prepared to deal with the fact that the user may want to kill the calling form before killing the second form. If the second form is not modal, it should probaly save the content of the object reference to a property before immediatly releasing the object. Otherwise, when the user try to kill the first form, it won't go away since the second form has a reference to one of it's member.
>You should also add the line
>
>thisform.myProp = .NULL.
>
>in form.Destroy() method.
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