Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Memory Leak Possibilities?

Kenn Nilsson
AeonVox
Join date: 24 May 2005
Posts: 897
05-14-2007 17:52
I've run into this problem with 2 or 3 scripts over time and am getting very frustrated with it, so I thought I'd ask:

What, if any, situations do people feel might cause very slow memory leaks over time that would eventually--after say weeks or months--render a script to experience a stack-heap collision and stop functioning?

I've gone through time and time again to make sure I don't have any variables open that might just collect and collect data...nothing of that sort is occuring...

...but the fact is with both scripts I'm thinking of and working on...they each work for, say, 2-3 weeks just perfectly--all functions, all interactions, etc. After that length of time...SOMETIMES they will hit stack-heap and stop working. The propensity seems to be based on frequency of use but not on individual function use...

...so...ANY ideas of ANYTHING that might cause memory leakage...?
_____________________
--AeonVox--

Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms chasing ghosts, eating magic pills, and listening to repetitive, addictive, electronic music.
RJ Source
Green Sky Labs
Join date: 10 Jan 2007
Posts: 272
05-14-2007 18:42
It's kind of hard to say without seeing the scripts, but, are you doing many operations on lists? They have a tendancy to leak.

Maybe a few debug calls to llGetFreeMemory might give further insights?