Talk:LlGetFreeMemory
Jump to navigation
Jump to search
--Num Skall 15:54, 28 June 2007 (PDT) Each script is presently allocated a 16K page of memory which contains the LSO bytecode, heap and stack. This function returns the difference between the current stack pointer and the heap's high-water mark. If the heap is exhausted, the stack and heap will collide and the script will crash.
If one is running low on memory, consider splitting the script into two parts or attempt to simplify the code. This includes strings as well (War and Peace should probably be placed in a notecard and not a string constant). Remember that every byte saved in code gives you one more for the heap and stack.