Re: Urgent: MDI Windows form Memory Leak: Major Issue

Tech-Archive recommends: Fix windows errors by optimizing your registry



Your assumption is correct. When a form closes, all the controls in the
form are disposed / will be garbage collected.

This could be the answer for your first question too. Second child form
is created from the first child. When first child form is closed,
second child form also should get disposed. Because you are setting the
main form as the parent of second child, garbage collector may not be
able to collect the first form memory also.

.



Relevant Pages

  • Re: Baby making
    ... suggest having the second child when the first child is 5 or 6 or ... was run nuts, taking care of two tinies all day, stranded in the ... I saw a mother in a park here in Nashville one day with 8 children, ...
    (rec.arts.sf.written)
  • Re: Baby making
    ... djheydt@xxxxxxxxxxx (Dorothy J Heydt) wrote: ... suggest having the second child when the first child is 5 or 6 or ...
    (rec.arts.sf.written)
  • Re: China facing major gender imbalance
    ... couples are permitted to have a second child to ... if they follow a policy of trying again when the first child is a girl, ... that this itself will result in a gender imbalance. ...
    (sci.bio.evolution)
  • Re: China facing major gender imbalance
    ... couples are permitted to have a second child to ... if they follow a policy of trying again when the first child is a girl, ... that this itself will result in a gender imbalance. ...
    (sci.bio.evolution)