Re: \\\ ALERT /// Re: Random calc/printing problem VFP9

Tech-Archive recommends: Fix windows errors by optimizing your registry



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?



.



Relevant Pages

  • \ ALERT /// Re: Random calc/printing problem VFP9
    ... One of my customer has two PC's: one with 384KB RAM memory (no ... PC's - none of my PCs have RAM memory over 1GB. ... I have a fairly involved app that calculates customer totals, ... This app was updated from VFP5 to VFP9. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: \ ALERT /// Re: Random calc/printing problem VFP9
    ... Remember what I said - there were two PCs side by side - the one with 384 ... KB no problems and one with 1.25 GB had problems - SAME app. ... Reducing VFP memory usage solved it. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.setup)
  • Re: How to set up a Linux machine that occupies the minimum memory footprint ?
    ... Of course, if you use 8GB of RAM, or more precisely if you ... Are you saying that if I have a 4GB RAM memory, ... Linux will somehow "know" that it doesn't have ... You've said in another message that your app is ...
    (comp.os.linux.misc)
  • Re: Pausing execution of an ASP Script
    ... The other app uses the existing highest value of one field in a table ... Let's say the Customer is an electronic parts distibutor. ... DOA to avoid being sued by it's greedy vendor... ... But if one session has a WRITELOCK at the instant another ASP session ...
    (microsoft.public.inetserver.asp.general)