-
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.
-
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.
-
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.
-
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
-
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.