Re: Dispose(bool), Idisposable, form closing etc.



"rbrowning1958" <RBrowning1958@xxxxxxxxx> wrote in message
news:db58258c-fe2b-40f2-be53-9b5c2f979a5c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
5. With regard to garbage collecting - doesn't Peter have it correct
where he says the form is not garbage collected because it is
referenced by application.openForms?

I'm just guessing here but I'd imagine that application.openForms keeps what
is called a weak reference to the form. This means that if all other
references are dropped then the GC can kill the references in openForms.

6. Brian mentioned that some class authors write property getters to
return data even after the form has been destroyed - I don't
understand this. Doesn't this mean the property getter has to be
static - and where would it savbe the data? In static class vars? That
implies I only have one instance of the form, right?

No, they are instance members. Remember the form is only hidden so
everything can be accessed still

Michael


.



Relevant Pages

  • Re: Fucking nutters.....
    ... I can only imagine it must have been before Mosley ... The only references ... I'm intrigued by the quote too. ...
    (uk.rec.motorcycles)
  • Re: ZoneAlarm Pro, Sygate Personal Firewall, or built in xp firewall?
    ... >> You're not picking on me. ... > umm no..."I think, I believe, I imagine" are examples of opinions, ... >> You have not cited any references to anything. ... > of an opinion because I have no data on how fast MS can type. ...
    (microsoft.public.windowsxp.security_admin)
  • Re: If youve nothing to hide.....
    ... can imagine how a licence holder would feel if this were the case. ... I think you'll find references to it in hansard. ...
    (uk.radio.amateur)
  • Re: lesbian bishops
    ... references to previous posts? ... It is difficult to imagine anything new ... Stuart Winsor ...
    (uk.religion.christian)
  • Re: lesbian bishops
    ... In message, Peter R ... references to previous posts? ... It is difficult to imagine anything new ...
    (uk.religion.christian)

Loading