Link to home
Start Free TrialLog in
Avatar of vgru
vgru

asked on

Reducing ram usage

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!
Avatar of deighton
deighton
Flag of United Kingdom of Great Britain and Northern Ireland image

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.
Avatar of 4P
4P

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.
ASKER CERTIFIED SOLUTION
Avatar of jgravelle
jgravelle

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vgru

ASKER

Thanks!