Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Program Too Large Error

I'm getting a 'Program Too Large' error in a form/program I'm writting, but
I have allot more code to add... Anyone have any any suggestions??
Thanks...
[180 byte] By [Dan] at [2007-11-10 12:48:23]
# 1 Re: Program Too Large Error
Dan,
A single .PRG file is limited to generating a 64KB .FXP file. If yours is larger than this, just
move some of the procedures / functions to a Procedure file OR just let them be standalone .PRG
files - the Project won't care - it'll find them. If you have a single .PRG that large and it has no
procedures / functions, then you need to think about breaking it up anyway.

A form allows each method to compile to 64KB, so unless you have very large methods, I can't see you
hitting this limit.

Rick

"Dan" <dhope@americanMailers.com> wrote in message news:3e417977$1@tnews.web.dev-archive.com...
>
> I'm getting a 'Program Too Large' error in a form/program I'm writting, but
> I have allot more code to add... Anyone have any any suggestions??
> Thanks...
Rick Bean at 2007-11-11 23:51:47 >
# 2 Re: Program Too Large Error
Dan <dhope@americanMailers.com> inscribed in
news:3e417977$1@tnews.web.dev-archive.com ...
> I'm getting a 'Program Too Large' error in a form/program I'm
> writting, but I have allot more code to add... Anyone have any any
> suggestions?? Thanks...

Dan, we did what Rick is describing at my last job. We broke the code into 4
pieces and had a "driver" program which looked like:

DO Part1.prg
DO Part2.prg
DO Part3.prg
DO Part4.prg

Needless to say it was an FPW application and was rather poorly designed
(not my idea).

--
Cindy Winegarden MCSD, Microsoft Visual FoxPro MVP
cindy.winegarden@mvps.org http://cindywinegarden.adsl.duke.edu
http://mdsn.microsoft.com/vfoxpro http://foxcentral.net
Cindy Winegarden at 2007-11-11 23:52:52 >