Author Topic: ERR:MEMORY even with enough RAM to store string  (Read 3835 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
ERR:MEMORY even with enough RAM to store string
« on: April 28, 2014, 01:06:15 am »
Does anyone know why, with 13 KB of RAM left, the following code, which is 8 KB large, would give ERR:MEMORY? I know that if I was storing to Str8, for example, I would need 16 KB of RAM to store that large string, but now I am just storing to Ans and I still get an ERR:MEMORY error. What gives?


Code: [Select]
real(1,1,4,63
If FV=2:Then
"12121212121212121212121212121212Aura Woods
Else
"88888888888888888888888888888888Wind Peak
End:Ans→Str9
"32323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E0F101D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2F3F22323232323232323232323232323232323232323232322D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2F102D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F3F2232323232323232323232323232323232323232323232323D1D1E1E1E1E1E1E1E1E1E1E1E1E2E2E2F3F103D2D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F22323232323232323232323232323232323232323232323232622D1E1E1E1E1E1E1E1E1E1E1E1E1F3E3F0010003D2D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F32323232323232323232323232323232323232323232323232323D2D2E2E2E1E1E1E191919191919191919101919191919191919191E1E1E1E1E1E1E1E1E1E0F4232720D0E0E0E0F4232323232323232323232323232323232623D3E3E3E1D1E1F3A1B1B1B1B1B1B1B1B301B1B1B1B1B1B1B1B2A1D1E1E1E1E1E1E1E1E1E1E0E0E0E1E1E1E1E1E0E0F42323232323232323232323232323232525252621D1E1E0E0E0E0E0E1F1B1B1B301B1B1B1B1D0E0E0E0E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F323232323232323232323232323232323232321D1E1E1E1E1E1E1E1E0F0000100000000D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F323232323232323232323232323232323232322D1E1E1E1E1E1E1E1E1E0F001000000D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F323232323232323232323232323232323232323D2D2E1E1E1E1E1E2E2E2E0F10000D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F32323232323232323232323232323232323232623D3E2D1E1E1E1F3E3E3E3F10002D1E1E1E1E4C5A5A5A5C1E1E1E1E1E1E1E1E1E1E2E1E1E1E1E1E1E1E1E1F323232323232323232323232323232323232323252623D1D1E1E2F1010101010000D1E1E1E643B296A2B39661E1E1E1E1E1E1E1E2F2D1E1E1E1E1E1F1D1E1F32323232323232323232323232323232323232323232621D1E1F3F100D0E0F000D1E1E1E1E67696B30696B681E1E1E1E1E1E1E1F0E0E1E1E2E1E1E2F1D1E2F32323232323232323232323232323232323232323232321D1E1E0F101D1E1F0D1E1E1E1E1E67797B10797B38656565656565656565656565661D2F3F2D2F3F32323232323232323232323232323232323232323232321D1E1E1F102D2E2F2D2E2E2E1E1E33377D107D3816101010101010101010101010681F3F003D3F0032323232323232323232323232323232323232323232321D1E1E1F103D3E3F3D3E3E3E2D1E33374A104A5810105353531010381754555610681E0F0000000032323232323232323232323232323232323232323232721D1E1E1F10101010101010103D1D33375310105810381537381515165456105810681E1E0F0000223232323232323232323232323232323232323232720D0E1E1E1E1E0F0D0F0D0E0E0F10001D33333710381610581057581010105738151610681E1E1F00223232323232323232323232323232323232323232720D1E1E1E1E1E1E2E2E2E2E2E2F3F10001D33333710383710581057581010103333545610681E2E2F223232323232323232323232323232323232720D0E0E0E1E1E1E1E1E1E2F3E3E3E3E3E3F10100D1E0E333710535610581057581010101416141610681E0F3F3232323232323232323232323232323232720D1E1E1E1E1E1E1E1E1E1F3F101010101010100D1E1E1F333710381610581014161010101010101010681E1E0F32323232323232323232323232323232720D1E1E1E1E1E1E1E1E1E1E1F00100D0E0E0E0E0E1E1E1E1F3337103837105810101010105456555555555565662F323232323232323232323232323232720D1E1E1E1E1E1E1E1E1E1E1E1F00102D2E2E2E2E1E1E1E1E1E0E67103837105810545610105758101010101010733F32323232323232323232323232720D0E1E1E1E1E1E1E1E1E1E1E1E1E1F00103D3E3E3E3E2D1E1E1E1E1E671054561058105758101057581053535353107322323232323232323232323232320D1E1D1E1E1E1E1E1E1E1E1E1E1E1E1E0F1010101010103D1D1E1E1E1E671057581058105758101057581058151517107342323232323232323232323232321D1E1E1E2E2E2E2E2E2E2E1E1E1E1E1E1E0E0E0E0E0F100D2E1E1E1E1E67103333105810575810105758105810101010680F323232323232323232323232321D1E1E1F3E3E3E3E3E3E3E2D1E1E1E1E1E1E1E1E1E2F103D3E2D1E1E1E67101416105810575810105758105810101010682F323232323232323232323232721D1E1E1F000000000000003D2D1E1E1E1E1E2F2D2F3F1000003D1D1E1E67101010105811575810101416105810535353733F3232323232323232323232720D1E1E1E1F00225252526200003D2D2E2E2E2F3F3D3F00100041001D0E1E33333710105455565810101010105810383333332232323232323232323232720D1E1E1E1E1F0032323232326200003D3E3E3E3F00000000100000001D1E1D33345610105710730D1F5610535358103833333332323232323232323232720D1E1E1E1E1E1F0032323232327200000000000000000000001000000D1E1E1F34333310101433062D2F58105833065038333306423232323232323232720D1E1E1E1E1E1E1F0042323232720000000D0E0E0E0F00000000100D0E0E1E1E6457141653533833373D3F581058070000385252620042323232323232320D1E1E1E1E1E1E1E1F00000050000000000D1E1E1E1E1E0F000000101D1E6465655714333333331633143333165373000010734232326252323232323232321D1E1E1E1E1E1E1E1E0E0E0E0E0E0E0E0E1E1E1E1E1E1E1E0F0000102D2E6753531433333333333333333333333333001010545632323232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2E2E2E2F00001054451415151515151533333333333333333316101010141635463232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F3E3E3E3F00001057101010101010101014333361333333333333151770101011383232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F004D4E4F0D0F1063531053535353531010141610141515151517101010383333333232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E0F5D5E5F2D2F1004071003050505375310101010383710101010101053730305063232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2F6D516F3D3F1010101000000000043753535353383753535310101305060D0F523232323232323232321E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1F3F0010101010100000000D0E0F000004050505050604050507000D0E0E0F2D2F323232323232323232321E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E0F00000D0F0000000D0E1E1E1E0F0000000000000000000000001D1E1E1F3D3F323232323232323232321E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E0F0D1E1E0E0F0D1D1E1E1E1E1F0D0E0E0E0F0D0E0E0E0E0F001D1E1E1F0022323232323232323232321E1E1E1E1E1E1E1E1E1E1E1E2E2E2E2E2E2F4C5A5C2E2E4C5C5A5A4C5C2F2D4C5A5C2F2D2E2E2F2D2E2E1E1E1E1F003D2D2E2F2232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F3E3E3E3E3E3F3B19393E4C6C7D19197D7C5C3D3B19393F3D3E3E3F3D3E3E2D1E1E1F00003D3E3F4232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F3815333333156C6E7C4C6C3A4A19194A2A7C5C6C6E7C15333333153710103D2D2E2F00000022620032323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F5810380537103A1B2A6C3A6C4A6E6E4A7C2A7C3A1B2A1038053710571010103D3E3F00002232422232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F58107D527D103A1B2A3A6C3A4A1B1B4A2A7C2A3A1B2A107D527D105710100000000000004232523232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F58104A324A103A1B2A103A6C4A71164A7C2A103A1B2A104A324A105710000D0E0E0E0E0E0F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F5810733263103A1B2A10103A2A10103A2A10103A1B2A10733263105710001D1E1E1E1E1E1F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F58107D327D101010101010107D10107D101010101010107D327D105710001D1E1E1E1E1E1F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1F58104A324A101010101010104A10104A101010101010104A324A105710001D1E1E1E1E1E1F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E2E2F5810733263107D10101010137D10107D10545610107D10733263105710001D1E1E1E1E1E2F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E0E1F58107D3263534A10107010104A10104A10141710104A5373327D105710001D1E1E1E1E2F3F32323232323232323232323232321E1E1E1E1E1E1E1E1E1E2E2F58104A320405050505050505371010380505050505050506324A105710002D1E1E1E2F3F2232323232323232323232323232321E1E1E1E1E1E1E1E1E1F3E3F5456583252525252525252523710103852525252525252523257543556003D1D1E2F3F223232323232323232323232323232321E1E1E1E1E1E1E1E1E1F4100040655555555555555555555551010555555555555555555551004050600001D2F3F22323232323232323232323232323232321E1E1E1E1E1E1E1E1E1E0F000000101010101010101010101010101010101010101010101010000000000D1F3F2232323232323232323232323232323232321E1E1E1E1E1E1E1E1E1E1E0E0E0E0F0D0E0E0E0E0E0E0E0E0E0E0E0E0E0F0D0E0E0E0E0E0E0E0E0E0E0E1E1F223232323232323232323232323232323232321E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2E2F323232323232323232323232323232323232321D1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2E2E2E2F3E3F323232323232323232323232323232323232322D2E1E1E1E1E1E1E1E1E1E1E1E1E1E1E1E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2E2F3E3E3E3F0022323232323232323232323232323232323232323D3E2D2E2E2E1E1E1E2E2E2E2E2E2E2E2F3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3E3F2252525252323232323232323232323232323232323232323252623D3E3E3E2D2E2F3E3E3E3E3E3E3E3F225252525252525252525252525252525252525252323232323232323232323232323232323232323232323232323232525252623D3E3F225252525252525232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232525252323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232

EDIT: By the way, I am using a TI-84 Plus C Silver Edition with Doors CSE installed. I don't recall having this problem on the monochrome models, at least on OS 2.43 or below.
« Last Edit: April 28, 2014, 02:51:12 am by DJ Omnimaga »

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: ERR:MEMORY even with enough RAM to store string
« Reply #1 on: April 28, 2014, 09:13:06 am »
HOly that code box breaks the width formatting brutally O.O

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline ClrDraw

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 627
  • Rating: +61/-2
    • View Profile
    • GitHub
Re: ERR:MEMORY even with enough RAM to store string
« Reply #2 on: April 28, 2014, 09:40:57 am »
Hah XD the quick reply box is way off the screen.

But sorry DJ, I don't know. If its in archive and you're running with zStart or something then the program would take twice as much space because the code
would be duplicated, but that shouldn't change the string... :/  Blame TI.
« Last Edit: April 29, 2014, 09:31:03 am by ClrDraw »
Visit my GitHub for all my TI programs as well as other projects.
Also check out my website.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ERR:MEMORY even with enough RAM to store string
« Reply #3 on: April 29, 2014, 05:45:19 pm »
Nah i don't use Zstart since it's not CSE-compatible.

Offline DrDnar

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 546
  • Rating: +97/-1
    • View Profile
Re: ERR:MEMORY even with enough RAM to store string
« Reply #4 on: April 29, 2014, 08:06:46 pm »
It seems to happen on my TI-84+SE with 2.55MP.
I'm guessing the OS craps out when buffering the
string; it may not be smart enough to realize that
the temporary string created doesn't need to be
duplicated when it's stored to Ans. But that's just
a wild guess.
"No tools will make a man a skilled workman, or master of defense, nor be of any use to him who has not learned how to handle them, and has never bestowed any attention upon them. . . . Yes, [] the tools which would teach men their own use would be beyond price."—Plato's The Republic, circa 380 BC

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: ERR:MEMORY even with enough RAM to store string
« Reply #5 on: April 29, 2014, 11:31:48 pm »
Confirmed to happen on OS 2.43 and 2.53MP too. So I guess strings just requires ridiculous amounts of memory to be stored.