Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Failed to allocate memory
#1
I'm pulling in a lot of data, formatting, and sorting...

I get the error "failed to allocate memory." when I am trying to .addline to a string.

The information I'm putting into the string has over 30,000 lines.

Any tricks you know that may help would be greatly appreciated.

Thanks,
Jim
#2
On my computer can allocate max 160 MB.

Macro Macro1574
Code:
Copy      Help
str s1k.all(1022 2 '.')
str s
rep
,_i=s.len
,s.addline(s1k)
,err
,,out _error.description ;;failed to allocate memory
,,out _i/1024/1024 ;;160 MB
,,break

I would try with database or simple file.
#3
I got it. I started stepping back.

I had an addline loop in a function so the variable just kept doubling each time. I fixed it and now it runs fine.

Thanks!


Forum Jump:


Users browsing this thread: 1 Guest(s)