Destroying forms

  • Thread starter Thread starter shawrie
  • Start date Start date
S

shawrie

hello

will form1.close destroy the form completely from memory or should i
be calling form1.dispose
and do we need to issue a form1 = nothing command.

thanks
shawrie
 
You're in a managed environment. You shouldn't care when it gets released
from memory. Closing it will run Dispose, which in turn will end up
deleting the objects root. At some point - a point that you shouuldn't be
trying to control - the GC may release that memory back to the system.
 
thanks for your help at last it makes sense. I really think i should
give up and go home for the day
 
Back
Top