Re: \\\ ALERT /// Re: Random calc/printing problem VFP9
- From: "Paul Pedersen" <nospam@xxxxxxx>
- Date: Thu, 7 Feb 2008 19:23:10 -0800
Thanks for reporting that.
But such behavior is bizarre and unexpected. Are you sure that was the
problem, and that you fixed it in that manner? After all, if it was a random
occurrence...
FWIW, my development machine has 2GB and I haven't noticed any such problems
(yet). I never touch SYS(3050)
"Paul Lee" <no@xxxxxxxxxxx> wrote in message
news:Xns9A3D94BCB90F3JD0MS@xxxxxxxxxxxxxxxx
OK. I think I have resolved the problem. It has to do with VFP8/9 memory
handling. One of my customer has two PC's: one with 384KB RAM memory (no
problem) and the other with 1.25GB (YES random problem). I have quite a
bit
of memory variables, public and private, and quite a bit of string
handling
and various complicated functions. Note that I never had any problems on
my
PC's - none of my PCs have RAM memory over 1GB. It seems that VFP does not
manage memory properly with PCs over 1GB.
Here is the way I resolved it. I put the following code at beginning of my
program:
SYS(3050, 1, Min(536870912,VAL(SYS(3050, 1, 0))))
SYS(3050, 2, Min(536870912,VAL(SYS(3050, 1, 0))))
That limits VFP buffer memory to lesser of available and 1/2 GB.
My one 1GB PC had no problems and its VFP had about 0.75 available memory,
so I put it at 1/2 GB max to be safe.
-----------------------------------------------------------------
Paul Lee ........ Abri Technologies ........ http://www.abri.com/
'Recover' - top rated FoxPro file repair utility.
-----------------------------------------------------------------
Paul Lee <no@xxxxxxxxxxx> wrote in
news:Xns9A3B75B13ADDBJD0MS@xxxxxxxxxxxxx:
I am bringing this up again in case somebody has any clue.
I have a fairly involved app that calculates customer totals, special
fees, due dates, etc. and prints the invoice. The problem is that
internally the numbers seem OK but "sometimes randomly" it prints it
wrong. Here are some details:
1. The customer can insert codes in a string to position their fees,
totals, due dates, etc where they want on the invoice. The codes are
converted to actual fees, etc. characters and the string is printed
out on the report. I do the similar substitutions for customer data on
other part of report (no problems).
2. It never happens on one of mine PCs - but I don't use the app 8
hours/day.
3. One customer has two networked PCs. The random results happen on
one PC (XP with SP2) and not on the second PC (XP with SP1).
4. This app was updated from VFP5 to VFP9. It did not happen with
VFP5.
5. Most cases with problems are using HP laser printers.
6. I install my apps by simply using the minimal required VFP9 files
into the app folder. By chance is there a system file that should be
installed somewhe else?
.
- Follow-Ups:
- Re: \\\ ALERT /// Re: Random calc/printing problem VFP9
- From: Paul Lee
- Re: \\\ ALERT /// Re: Random calc/printing problem VFP9
- References:
- Random calc/printing problem VFP9
- From: Paul Lee
- \\\ ALERT /// Re: Random calc/printing problem VFP9
- From: Paul Lee
- Random calc/printing problem VFP9
- Prev by Date: RE: Tables not updating in compiled program - VFP 9 SP2
- Next by Date: Re: \\\ ALERT /// Re: Random calc/printing problem VFP9
- Previous by thread: \\\ ALERT /// Re: Random calc/printing problem VFP9
- Next by thread: Re: \\\ ALERT /// Re: Random calc/printing problem VFP9
- Index(es):
Relevant Pages
|