Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Alines Capacities
Message
De
03/12/2013 10:23:35
 
 
À
03/12/2013 10:21:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01589139
Message ID:
01589157
Vues:
46
>>Hello
>>
>>What is the maximum number of elements an array can have? I am reading in a text file using FILETOSTR() and converting to an array of lines using ALINES(). The file size is 132,040 KB. I am getting an error "Not enough memory to complete the operation", error 43.
>>
>>Any suggestions or ideas where to look?
>
>Jos,
>
>If you haven't mistyped and really want to slurp 132 megabytes, sys(3050) might need some tweaking as this is set depending on machine physical RAM on startup unless hinted at in config file. As Greg hinted such amounts might be handled otherwise using less memory via file functions. Depending on the line length, file structure and task to be done I'd probably slurp it into a cursor and work from there. In a beefy machine with memory set accordingly the alines() approach should work, but just to be safe I'd probably code it differently to be able to run on backup old HW.
>
>regards

Yes, I ended up limiting the memory using that function and it works now. I forgot that the app had recently been moved to an 8Gb RAM computer and forgot to add a memory limitation for VFP. Seems OK now.

Thanks
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform