General information
Category:
Coding, syntax & commands
Environment versions
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
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only