Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Splitting up a big exe
Message
From
02/12/2000 03:06:19
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00447774
Message ID:
00448462
Views:
11
Hi tommy,

>287 Forms - SCT 3K to 380K
> SCX 3K to 40K
>
>4 Classes - VCX 2K to 18K
> VCT 9K to 299 K
>
>898 Reports are included - FRX 6K to 30K
> FRT 6K to 62K
>
>242K of BMP's
>18K of JPG's
>
>Only 4 Active X Components in the whole project and included on only on 2 of the forms. (email and fax)

I'm impressed of the numbers. To make your exe smaller it might be wise to exclude your reports from your exe and store them on disk in a seperate directory (as readonly). If not desireble you can also choose to compress them (for example with the Focus library) and store them in a table (with a binary field and extract them when needed.

As for data included into the project, Yes, they're included into exe. It might be wise to store them on disk also. It will reduce the size of your exe significant.

As for the forms: a formsize of 380K is very large. You might want to identify in which cases it might be benefital to base them on classes which are shared among various forms. In this way you may eliminate some forms, and reduce others in size.

Based on the data you've given me it might be possible to reduce the size of your exe to less than - 10 MB (wild guess), which still quite large but a lot better than 38 MB.

Everything that is in your project marked for inclusion is included in your exe file. Therefore it might be wise to list all files, determine if your really want to include them or trying to reduce the size or eliminate (with the help of classes) them.

Succes,

Walter,




>The tables are included in the project but I don't think they are compiled into the exe. Maybe I should remove those and try a recompile.'
>
>I guess that may have not been an accurate representation of the source. Part of that is the compiled versions of course. That is the total of my directories that contain things that are compiled into the project. I should have checked for the source files only. Still, it is a very large project (at least to me, I wrote most of it).
>
>Tommy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform