Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
\\\ALERT/// Random calc/printing problem VFP9/8
Message
From
08/02/2008 03:06:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01290588
Message ID:
01290743
Views:
13
Paul,

hm, I run all my PC's with 2GB VFP9 SP1, Customers too. I never run into such problems.
Surely it has to do with the VFP9 deals with the memory, but it could be outside VFP.

Have you run a Memorytest / hardwaretest against the machine? Could you reproduce on other machines?

My experience is, that errors like this result from bad hardware. Cruel things may happen with a bad capacitor.

Agnes
>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.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform