.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   OT - VB Programing Question (http://forum.shrapnelgames.com/showthread.php?t=8718)

DavidG March 2nd, 2003 09:29 PM

OT - VB Programing Question
 
Can any VB programers help me with this. In my SE4Modder program editing a System Type consumes large amounts of memory (lie over half on my 256MB system) The reason would seem to be the large number of combo boxes. For every system object 9 combo boxes get loaded. So for a stantard system of 12 system objects you'd have 108 combo boxes loaded. (the combo boxes are control arrays so there are only 9 unique names)

The question is, should this be expect to consume that much of the computers resourses? It seems to run fine in WinXP but causes problems in ME (and I presume earlier Versions)

I suspect maybe this is just a bad program design and I need to redesign the form using a grid control or something.

Edit: For my amazing math skills http://forum.shrapnelgames.com/images/icons/shock.gif

[ March 03, 2003, 01:12: Message edited by: DavidG ]

Suicide Junkie March 3rd, 2003 01:48 AM

Re: OT - VB Programing Question
 
9x12=108

But why do you need to have combos for each item, even if you're not editing it at the time?

Wouldn't it be easier to have a listbox, and then have the comboboxes update to display/edit whichever object you've selected from the list?

DavidG March 3rd, 2003 01:36 PM

Re: OT - VB Programing Question
 
Yea I agree there are other methods to do it without so many combo boxes. I was more curious if it was normal that a combo box would consume that much of the computers resources.

StormcloudCreations March 3rd, 2003 07:58 PM

Re: OT - VB Programing Question
 
They certainly do! I love VB, but it is notorious for being a bit hoggy in resources to begin with, and combo boxes are a major culprit. As suggested below, a redesign is in order (a grid would work, perhaps). http://forum.shrapnelgames.com/images/icons/icon7.gif

DavidG March 4th, 2003 12:55 AM

Re: OT - VB Programing Question
 
Quote:

Originally posted by StormcloudCreations:
They certainly do! I love VB, but it is notorious for being a bit hoggy in resources to begin with, and combo boxes are a major culprit. As suggested below, a redesign is in order (a grid would work, perhaps). http://forum.shrapnelgames.com/images/icons/icon7.gif
<font size="2" face="Verdana, Helvetica, sans-serif">Thanks. http://forum.shrapnelgames.com/images/icons/icon7.gif Guess I have some work to do now.


All times are GMT -4. The time now is 01:01 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.