resourses release problem

  • Thread starter Thread starter touf
  • Start date Start date
T

touf

Hi,
I've an application (VB.NET version 2002, ms-access 2002) composed of an MDI
parent (menus) and some MDI childs.
When the DB start to be important (100 MB) i've started having some memory
problems.

I noticed (in task manager) that when I open an MDI child form, and I close
it the memory isn't released... do I have to do some specific thing to
release the memory space that the form was occupating?

Thanks.
 
Do you "dispose" the child mdi form as well when you close it?

-Not sure if that would help or not.

M.
 
Hi,
I've an application (VB.NET version 2002, ms-access 2002) composed of an MDI
parent (menus) and some MDI childs.
When the DB start to be important (100 MB) i've started having some memory
problems.

I noticed (in task manager) that when I open an MDI child form, and I close
it the memory isn't released... do I have to do some specific thing to
release the memory space that the form was occupating?

Thanks.

Hi,

You don't need to anything other than stop using (referencing) the
object. The garbage collector will handle the rest. You may not see
the memory usage go down in task manager because the memory may not be
released to the OS.

Brian
 
Just fyi, in regards to this:
When the DB start to be important (100 MB) i've started having some
memory problems.

This is not likely to be causing your problems, if you mean that the
database size on the disk is 100MB. This is not an overly large Access
database. I used to support one that was 700MB with not performance issues.

Robin S.
--------------------------------------
 
Back
Top