Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Network:
Windows 2008 Server
>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
thomas
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement