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...?