Results 1 to 5 of 5

Thread: Combo box memory?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    79

    Combo box memory?

    VB6. I have 1 form with 64 combo boxes. The problem is that when the form is loaded (even in design mode) it takes up too much memory (system resources). And for some users (LAN), when they run the exe, it causes a Run time Error 7 - out of memory.

    Is their a way to reduce the memory the combo boxes use?

    Any suggestions?

    Note: I have the same problem even if I don't populate the combo boxes.

  2. #2
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    Is there no way to reduce the number of combo boxes? Or load them dynamically limiting the amount of times that all 64 comboboxes are needed.
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    I think there must be something else going on like some sort of loop that uses up your system memory. I created a form with 64 comboboxes and had no problem opening the form. BTW I have an application that has over 400 controls on one form (only 11 are comboboxes) and memory is no problem.

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Oct 2001
    Posts
    79
    Marty

    I'll look for a loop.

    But get this... In design mode, when I double click on the form, my system resources (which I'm monitoring on the side) goes from 63% free to 34% free. Other forms seem to drop the resources by only 5% or so, not 30%.

    What in design mode could be using up all the resources?

    Thanks

  5. #5
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    How are you monitoring system resources? When I use Word's Help|SystemInfo for my 64-combobox test form or my 400+ control form I see no such decrease in physical memory. I can understand your problem happening if you have a lot of code in the form and your program is running, but otherwise I'm stumped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width