General information
Category:
Forms & Form designer
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.
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