resourses release problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • touf

    #1

    resourses release problem

    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.


  • Miro

    #2
    Re: resourses release problem

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

    -Not sure if that would help or not.

    M.

    "touf" <touiss@hotmail .comwrote in message
    news:eQV5Ft1WHH A.4720@TK2MSFTN GP04.phx.gbl...
    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.
    >

    Comment

    • Brian Gideon

      #3
      Re: resourses release problem

      On Feb 28, 11:09 am, "touf" <tou...@hotmail .comwrote:
      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


      Comment

      • RobinS

        #4
        Re: resourses release problem

        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.
        --------------------------------------
        "touf" <touiss@hotmail .comwrote in message
        news:eQV5Ft1WHH A.4720@TK2MSFTN GP04.phx.gbl...
        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.
        >

        Comment

        Working...