RE: Out of memory
- Posted by irv at take.maxleft.com Jun 06, 2002
- 457 views
flint at acay.com.au wrote: > Hi everyone, > > I'm having trouble loading a sequence from file. The sequence consists > of > 32657 elements, each element having up to 100 sub-elements as well. > Total > file size is 72 meg. When attempting to load with get(fn), it runs for > about 1/2 hour and stops with error message: > > E:\Euphoria\include\get.e:265 in function Get() > Your program has run out of memory. > One moment please ... > > I've tried breaking up the sequence and saving to files separately, then > > loading back in separately. > I can then load each sequence on it's own, but when loading all in & > appending to re-create the one sequence I get the same error. > > I'm using a PII 400 w/226 meg ram - 180 meg free before running the > code. > Is there some limit to total number of elements allowed in a sequence? > Or should I be configuring my system differently ? > > Any help muchly appreciated, as I've been stuck on this for a few days > now. Euphoria uses 32 bits to store each atom or each element of a sequence. That means you need 288 megs of memory or virtual memory to load that file. Even if you had enough memory, it is going to take a long time to load. It's very likely that loading the entire file is not the best approach. What exactly are you trying to do with that file? Irv