Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 To: Mike Gagnon
  Where is Mike Gagnon?
 Pointe Claire
 Canada
 Mike Gagnon
 Tags
Subject: RE: VFP 9.0 Help: Max Number of Array Elements - ?!?!
Thread ID: 81103 Message ID: 81125 # Views: 33 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Tuesday, November 08, 2005 1:03:14 AM         
   


> PUBLIC ARRAY myArray[300000]
> In VFP 9.0 no errors, in VFP8.0 error. They increased the limit.
>


WAW, I can have as large an array as the physical available RAM size?

Hmmm...

Allright, then! I obtained programmatically the size of the physically available RAM on a 512 MB RAM machine (it was 340+ Mb at the moment). When I issued
lnRecs = lnPhysMem / lnRecLen

LOCAL ARRAY laMyArray[lnRecs, lnFldsCount]
I just heard the HDD started spinning and saw its LED lit red. Apparently, it was using virtual memory. Only when I "allocated" just 10% of lnPhysRAM for the array, it went by without using virtual RAM on local HDD.

Regards,

Ilya



COMPLETE THREAD
VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Ilya Rabyy @ 11/7/2005 7:37:44 PM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Yuri Rubinov @ 11/7/2005 8:20:08 PM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Mike Gagnon @ 11/8/2005 12:28:03 AM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Ilya Rabyy @ 11/8/2005 1:03:14 AM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Patrick McGreevy @ 11/9/2005 4:09:52 AM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Mike Gagnon @ 11/9/2005 1:27:02 PM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Mike Gagnon @ 11/10/2005 12:57:47 AM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Patrick McGreevy @ 11/10/2005 2:29:58 PM
RE: VFP 9.0 Help: Max Number of Array Elements - ?!?! Posted by Ilya Rabyy @ 11/10/2005 5:59:28 PM