Remember that the GC runs in the background and at a not precise interval
so it's not uncommon to see the memory use to increase.
This in no way would make the app to run slower though.
I think that you may have another problem with the form, what is this form
doing? Do you use any 3rd party component there? Do you keep a reference
to the form (or to any object you create in the form) ina collection
outside the form?
What if you remove ALL the functionality of the forms and just create
/destroy it, do you see the same issue?
Also install the SP1 of the framework
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
Ignacio.
I created samples to test this scenario. There are no outside collections
refering to the form in question. If the form is created and destroyed in
the same function, memory seems to be steady but finalize is not called on
the form even after a GC.Collect call. I understand there is no need to
force the collect, but this was done just for testing purposes to draw some
conclusions.
If i create a panel in a form, create a sub form and add the sub form to the
panel, then on a button press or something remove the form from the panel's
collection and do a GC.Collect, my finalizers are hit correctly. But if i
close the form using the form's top right close button, dispose is called
but not finalize. In the actual application i am trying to debug, users
close sub forms using the X button.