Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Resource hog...how do I lower the resources meter

Status
Not open for further replies.

wujen

Programmer
Aug 21, 2001
79
US
hey all,


I have a general question...

How do you make a program not a resource hog....I am developing a language program and before I make it beta is there any way to lower the resources.
When I have nothing but the "normal" stuff running the resource meter is like this:
system resource meter: 46 % free
user resource meter: 46 % free
GDI resource meter: 61% free

but once i have my application running:
system resource meter: 28 % free
user resource meter: 31 % free
GDI resource meter: 29% free

when i have vb6 sp 4 open it is
35
35
41


so is it normal for an application a resource hog...is there anyt hing that i can do to get it more friendlier???

Aaron
 
Simply, write efficient code. Make sure you release memory as soon as you are finished with it. This includes variables, objects, forms, etc. Create and use only what you will need. The more controls you use, the larger the app becomes, not like text boxes, but larger and 3rd party controls. There are many things that you should include and avoid, but the above is something to keep in mind.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top