Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.APP growing like Topsy
Message
 
 
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00323441
Message ID:
00323638
Views:
34
Ed,

>>I have two applications that are growing every time I compile them into .APPs.
>>
>>I can, for instance, compile one into an app, and the size is 3.4MB. I can immediately compile it again, and the size is 4.2MB. The other is exhibiting the same behavior.
>>
>>Both have debug turned on; they are smaller when it is turned off, but I really need the line numbers in error trapping.
>>
>>Clues?
>>
>
>When class libraries, forms, reports and the like compile, the results are written into their .??t in much the same fashion as rewriting the content of a memo field in FoxPro, anbd they're subject to the same kind ofgrowth through not reusing sections of otherwise idle memo space all the time. I suspect that you've got the moral equivalent of memo bloat running through your application. You might try writing a bit of code that rolls through the content of your application (VFP 6's Project class can help here), opens each of the applicable files as a DBF EXCLUSIVEly, and then PACKs them, after having recompiled everything. If you then go through and build your app without another run of compilation, you might find some surprising savings in file size.

I had an application 664KB, I've used your advice and packed each vcx and scx from this project. It's very strange, but the result is the same - 664KB...
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform