? Temporary memory leaks (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

Temporary memory leaks

  • #1 ✎ 1483 12Me21 Admin Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself Second Year My account is over 2 years old Website After a program ends, the memory it used is not immediately freed. (This is to allow you to use CONT to continue the program, or check the value of variables) However, using CLEAR is not completely effective at clearing memory. The only way to really free the memory used by a slot is to run another program in that slot (preferably one that doesn't use very much memory), or, for the smile tool, changing the currently assigned program will also free its memory. For some reason, the smile tool's memory isn't immediately freed after it ends, even though you do not have access to its variables, and you can't use CONT. This causes a memory leak, particularly if you ended the program while it was using a lot of memory. Posted Edited by 12Me21
  • #2 ✎ 7 greedyGoa7 Intermediate Programmer I can make programs, but I still have trouble here and there. Programming Strength Zelda Is Awesome! I love The Legend Of Zelda! Express Yourself Day Person I like the warm sunshine and wake up early! Express Yourself This is very interesting information! I’ll try to keep this is mind a little bit. Posted