Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
\\\ALERT/// Random calc/printing problem VFP9/8
Message
From
08/02/2008 01:03:27
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01290588
Message ID:
01290737
Views:
14
>Recently I posted a problem with random calculation and printing bug in VFP8/9 with one of my inventory apps. It would give strange results about every tenth time for some customers. But never happened on any of my PCs.
>
>OK. I think I have resolved the problem. It has to do with VFP8/9 memory handling. One of my customers has two PC's: one with 384KB RAM memory (no problem) and the other with 1.25GB (YES random problems). The app has 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 - but none of my PCs have RAM over 1GB. It seems that VFP8/9 does not manage memory properly with PCs over 1GB. The same previous version of the app used VFP5 with no problems - could it was in the < 1GB memory era.
>
>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.

Thanks for posting this. If it's present in VFP9 SP2 maybe you could update the Wiki bug page: http://fox.wikis.com/wc.dll?Wiki~VFP9SP2BugList~VFP (seems to be down at this time)
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform