Bumping into Program is too large


In my avfp page once it gets to a certain size I get an error that the program is too large. I think it is because it is merging the entire HTML into the VFP procedure and the file is larger that the 65,000 KB size.

It would be helpful to not have the HTML be included in the procedure.


Titu1 wrote Jun 5, 2014 at 11:04 PM

If u are on V6. (i.e. using vfp 9) try adjusting the value of PROGCACHE in configuration file. Heavy lifting by AVFP mt dll may also throw this error...and not just the prog size ( i.e. vfp 8 problem).

apaustria wrote Mar 2, 2016 at 9:53 PM

Titu, can you please let me know where is the PROGCACHE can be found? I'm having this issues every now and then and I can't seem to figure out what's happening on it since there's actually no error on the program itself. Just by restarting the IIS, the page will start working again for some reason.

wrote Mar 3, 2016 at 3:47 PM

Titu1 wrote Apr 1, 2016 at 6:54 PM

Titu1 wrote Apr 1, 2016 at 7:54 PM

and oh... PROGCACHE is setup in Config.fpw file. Place this file in the application root. next to the main EXE file that is the entry point to your application. It is not clear in that link i gave you.

apaustria wrote Apr 15, 2016 at 5:15 PM

Hi Titu, do you mean create a config.fpw with content below and put it in the PRG folder?

I tried this and basically set my default.avfp to have this line:
<p class="p-b-20">Prog cache: <%=sys(3065)%></p> -->

It's still giving me -2 instead of 0 though.

apaustria wrote May 30, 2016 at 3:42 PM

I figured it out. With the help of Victor, we compiled a new version of activevfp.dll with an internal config.fpw included and PROGCACHE=0. If your internal config.fpw also includes ALLOWEXTERNAL=ON, it's possible to call an external config.fpw as well.

Tachyx wrote Apr 27 at 4:53 PM

I seem to be having this problem now. I can't change PROGCACHE. Seriously, does everyone have to recompile their own version of AVFP to be able to use more than 128k of memory?