Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stopping Exe compile bloating?

Status
Not open for further replies.

pt777

Technical User
Mar 27, 2004
62
US
My exe(s) bloat in memory after every compile; that is to say they increment in size and become HUGE after each compile.

The only way I've been able to reduce them afresh has been to go to CLASS BROWSER and hit the 'X' button ("Clean up Class Library") ... then recompile.

Any other suggestions as this gets tedious and annoying?

Thanks in advance,

Philip
 
Philip,

Have you checked that you are not including any files that shouldn't be included? In particular, you would not normally include a database files or tables. If you have added any Word documents, Excel sheets or other non-VFP files to your project, these too should be excluded.

Cleaning up the class libraries is a good idea. Do the same with forms.

In the Project Info window, remove the tick against Debug Info. That will save quite a bit if space, at the expense of not getting the text of source code lines in error messages.

Finally, be aware that VFP EXEs are normally quite large. A small app with just a couple of forms is likely to exceed 100 KB, while a reasonably large app could be well over a megabyte, and possiblly 2 MB.

Hope this helps.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
An alternate way to clean up is:

USE (myclasslib.VCX) EXCL
PACK
USE (my other classlib.vcx) EXCL
PACK
USE (MyProjectFile.PJX) EXCL
PACK
USE

Then build.

Note, on a side point, Mike is right: VFP .EXEs are normally large. Though the same application built as a .APP can be quite small. If you frequently update your app, you can distribute a .EXE front end that launches a similarly named .APP, then just distribute the .APP from then on.

- Bill

Get the best answers to your questions -- See FAQ481-4875.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top