.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old March 2nd, 2003, 09:29 PM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default 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

[ March 03, 2003, 01:12: Message edited by: DavidG ]
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
  #2  
Old March 3rd, 2003, 01:48 AM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default 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?
Reply With Quote
  #3  
Old March 3rd, 2003, 01:36 PM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default 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.
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
  #4  
Old March 3rd, 2003, 07:58 PM

StormcloudCreations StormcloudCreations is offline
Sergeant
 
Join Date: Dec 2002
Location: California
Posts: 265
Thanks: 0
Thanked 0 Times in 0 Posts
StormcloudCreations is on a distinguished road
Default 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).
__________________
Derek
Stormcloud Creations
http://www.stormcloudcreations.com
Reply With Quote
  #5  
Old March 4th, 2003, 12:55 AM
DavidG's Avatar

DavidG DavidG is offline
Lieutenant Colonel
 
Join Date: Jan 2002
Location: Dundas, Ontario, Canada
Posts: 1,498
Thanks: 0
Thanked 0 Times in 0 Posts
DavidG is on a distinguished road
Default 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).
Thanks. Guess I have some work to do now.
__________________
SE4Modder ver 1.76
or for just the EXESE4Modder EXE Ver 1.76
SE4 Mod List
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


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


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