Memory efficiency in VB studio 2005 apps

Hey,

I'm using VB 2005 Express Edition to develop apps at the moment, my only release is here

OrderOrganise - Photo Organisation Software

It functions how I want it to, but the overhead is around 28MB when the main form has loaded.

After images have been scanned for, it increases to 30Mb and a little over... I'm just wondering if anyone can point me in the right direction as to links to other sites or common memory leak problems.

My app uses 8 forms; a splash screen, profile manager, main form, batch rename form, colour/size options, a waiting screen (while scanning) and an about box. I'm pretty sure it could be the use of global variables being accessed across forms.

For example, I'm accessing variables from the profile manager (the 2nd form, after the splash screen) quite often from the main form, even when the 2nd for is closed. Would this prove a problem?

Cheers all,

-pini.

#403958

Check your PM's

#403986

Don't know how it is now with 2005, but I heard you can trim down assembly memory usage in C# by avoiding e.g.:

using System;

instead specialize to what you really need:

using System.Collections.Generic;

using System.Text;

The likes should be available to VB.Net, too.

#403987

For VB its things like Imports.System.. so if I'm more precise it should be better?

dj, I'll contact you tonight - going out soon.

#404171