multiple forms in vb.net CF

  • Thread starter Thread starter Matteo Gabella
  • Start date Start date
M

Matteo Gabella

how .net manage different forms?
can i open several forms and than close them to free memory?
or just as in eVB nothing is detroyed?
thanks
matteo

ps: maybe if someone could suggest some code samples.... ;-)
 
Matteo

..NET CF is particularly slow w.r.t. opening and closing new forms, in
particular ones with numerous controls on them. .NET in general, when you
release references to an object it will automatically get cleaned up (memory
freed) by the Garbage collector. However, this comes with the obvious
caveats that you must clear all references to any object you want cleaned up
and that you have no control as to when the GC will clean up.

There are some things that you can do to improve performance, such as
implementing the IDisposable interface to make sure resources are properly
freed.

Nick
 
Back
Top