Solved

Reducing ram usage

Posted on 2000-04-28
4
298 Views
Last Modified: 2010-05-02
I have a VB app that because of the amount of work it has to do takes a very large percentage of the server's ram which practically brings the server to a halt.  Is there any tricks to reduce ram usage in VB.  Any help would be great!  Thanks!
0
Comment
Question by:vgru
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 18

Expert Comment

by:deighton
ID: 2758856
depends on the code you've got so far/what the program does.

 Avoiding variants where a type like integer can be used is a good one.  

Avoid large arrays of public variables etc.
0
 
LVL 1

Expert Comment

by:4P
ID: 2758947
I agree with Deighton on avoiding public variables and arrays.

I just wanted to note that it's a good practice to free up everything you don't need anymore. I mean objects, escpecially large automation objects and also recordsets.

It would be helpful to know what kind of tasks your program does.
0
 
LVL 1

Accepted Solution

by:
jgravelle earned 20 total points
ID: 2759233
I would also agree with the previous suggestion as well you may want to use light weight controls where possible. Use an Image box instead of a Picture Box, Labels instead of textboxes if you just need to display values on the screen, avoid using a bunch of different fonts on your forms. And like the last comment said always always release any objects you have set by setting them to nothing.
0
 

Author Comment

by:vgru
ID: 2759253
Thanks!
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 11 hours left to enroll

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question