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:
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.
Have you tried resetting ram? These errors seem to be popping up a lot lately.
Give Clear Entries a whirl before running the program again, and see if that changes anything.

My normal 84+SE and CSE both only use up the expected 8190 bytes in the program plus the 8190 in Ans.
DJ_O wrote:
[...]I know that if I was storing to Str8, for example, I would need 16 KB of RAM to store that large string,[...]
Storing to Str8 and storing to Ans have exactly the same RAM requirements, give or take the difference in token length between Str8's name and Ans's name. Ans just becomes a string, so the exact same memory restrictions apply.

Edit: As Shaun pointed out, storing to Str8 would store it to both Str8 and Ans. Whoops. Wink I assume you took the size of the program itself into account too?
For the above, I didn't store to Str8, just Ans. With a copy of this program unarchived (prgmXTEMP001), I had 13 KB of free RAM with the program in RAM. By storing the string to Ans I should have ended up with 5 KB, right? Because that's where I get the ERR:MEMORY. This is what I found strange.

The RAM clear and Clear Entries trick did not work.
Just keep running the program till the calc crashes. That always worked for me.
KermMartian wrote:
Whoops.
I briefly considered storing to an equation/sequence variable and using Equ►String(, neither of which updates Ans, but then that leaves a copy of the string in the variable, so...
Would this be caused by a fragmented VAT with no contiguous 8KB block available?
I imagine that when this program is executed, then the TI-OS will display the long string because that is the final part of the program. Because of this, the home screen entries will take on this data, thus increasing it by 8K. This could be the reason why clearentries does not work, because it has Ans which is equal to 8K, and the home entries which are also around 8K. Thus, 8K+8K=16K. Now, I think if you put a new line at the end your program and write something like this:

:ClrHome

It could work. Probably, maybe not though.

EDIT: Nope, this did not work for me when I just tested it.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement