Making a program smaller
Making a program smaller
(OP)
I have a VB6 program that does design, engineering, drafting, estimating and material control functions ( it has lots of buttons and screens for lots of people ). When compiled it is around 890Mb. Jeepers, that's large !! How can I reduce the file size? Are there 3rd party compilers that are more space efficient than MS? I tried in the compile options to optimize for size but that only reduced it by about 62k. Also, the memory load is 3,120K (from the Windows Task Manager) - how can I reduce this?
RE: Making a program smaller
There is no other compiler that will improve this, it sounds like the problem is in the program design.
Are all the buttons individual or are you using Control Arrays?
Or is the 890Mb the program and it's data - does it use a database? Can that be compacted?
RE: Making a program smaller
RE: Making a program smaller
Are they plain bitmaps? Changing them to GIF's might help.
Or loading the pictures from a picture clip control.
RE: Making a program smaller
RE: Making a program smaller
TTFN
RE: Making a program smaller
Do you clean your arrays to remove unnecessarily information?
Vlado
RE: Making a program smaller
I guess I'll just keep plugging away....thanks for your time and suggestions
RE: Making a program smaller
It has 78 forms and 47,537 lines of code, excluding comments.
Try installing MZTools (http://www.mztools.com, brilliant and free) and using it's analysis feature to check out the program.