Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Application is slow on user's machine
Message
From
11/08/2005 14:48:09
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040199
Message ID:
01040357
Views:
20
>>Hi Naomi,
>>This is what we use to limit the size to 512 MB
>>
>>lcmemsize = SYS(1001)
>>IF(VAL(lcmemsize) > 512000000) THEN
>>  =SYS(3050,1,512000000)
>>ENDIF
>>
>
>Thanks a lot. How can I now find out, how much memory I'm using? I tried to use that setting and I don't see a speed difference.
>
>I think, our problem is related to TEMP files. I think, our users don't have an access to Windows default temp files directory... That's my theory, which I hadn't chance to test yet.
>
>>>>Naomi,
>>>>
>>>>= SYS(3050,1,val(SYS(1001))/8)
>>>>= SYS(3050,2,val(SYS(1001))/8)
>>>>
>>>>Should limit your 1 GB machine to about 256 K, evenly split between the Foreground and Background buffers.
>>>>
>>>
>>>How can I found the amount of memory available? Memory() doesn't seem to return someting useful.

Naomi,

SYS(1001) gives you the virtual memory, which, according to Help, is about 4 times the actual physical memory.

If you only issued
=SYS(3050,1,512000000)
then I don't think you limited your memory at all, just allocated half of it to the foreground.

Regards,
Jim
Previous
Reply
Map
View

Click here to load this message in the networking platform