>>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